Hoglet

Base64 to image

What is inside

The picture will show here Paste Base64 on the left, or drop a text file that holds it. Nothing is uploaded.
Decoded on this device

Base64 to Image: Decode a Data URI to PNG, JPG, SVG

Show and save the picture or file inside a Base64 string.

Base64 writes a file as plain letters and digits, so a picture can travel inside text: in a data URI (data:image/png;base64,…), in CSS, in HTML or in JSON. Paste any of these and the file inside is shown: a picture on a checkerboard, so its transparent parts show, with its size in pixels and its weight. The type is told from the file’s own bytes, not from what the data URI claims, and a data URI that names the wrong type is pointed out; the file is saved under the extension its contents call for. Base64 in either alphabet (standard or URL-safe), with or without padding and line breaks, is read, and so is a data URI with the data written out rather than in Base64, as SVGs often are in CSS. Something that is not a picture, such as a PDF or a font, is named and can be saved too. Save the file, drag it out, or send it to another tool; Copy data URI gives the data URI with the right type. What you paste is decoded on this device and never sent anywhere. For the other way, use Image to Base64.

How to use Base64 to image

  1. Paste Base64, a data URI, or the CSS or HTML that holds one into the box, or drop a text file that holds it.
  2. See the picture under What is inside, with its type, size in pixels and file size.
  3. Press Save to download the file, or Copy data URI to copy it with the right type.

Base64 to image: common questions

Is it safe to decode Base64 images online?

Base64 to image decodes what you paste in your browser, on your device: the text and the file inside it are never sent anywhere.

How do I turn a data URI into a PNG or JPG file?

Paste the data URI into Base64 to image and it shows the file inside, then saves it under the extension its bytes call for. It does not change the format; Convert image does that.

What if the Base64 is not a picture?

Base64 to image names what it is, such as a PDF or a font, and it can still be saved. The type is told from the file’s own bytes, and a data URI that names the wrong type is pointed out.

Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.