How do I use the base64 to image converter?
Paste your base64 string into the box and click Decode image. The preview appears on a checkerboard background (so transparency is visible), with the image dimensions, type and data size shown above it. The box starts with a 1 x 1 transparent PNG so you can see it work immediately; press Sample for a 400 x 300 test image. Choose PNG or JPG and click Download to save the decoded image as a file.
What is base64 encoding?
Base64 is a way to represent binary data — like an image file — using only 64 safe text characters: A-Z, a-z, 0-9, + and /, with=padding at the end. Every 3 bytes of the original become 4 base64 characters, so the text is about a third larger than the file. It exists because many systems (email, JSON, HTML, APIs) can only carry text safely, so images travel as base64 text and are decoded back at the other end.
What is a data URI?
A data URI embeds the file directly in a URL-like string: data:image/png;base64, followed by the base64 data. Browsers can display it anywhere an image URL works — in an img tag, CSS background, or favicon — without a separate file request. This converter accepts both forms: paste the full data URI and the format is detected automatically, or paste raw base64 and it is treated as PNG unless the data says otherwise.
Why is my base64 not decoding?
The usual causes: the string was truncated when copied (even one missing character breaks it), the=padding at the end was lost, line breaks or spaces crept in (this tool strips whitespace for you), or the base64 is not an image at all — it could be a PDF, audio or plain text. The tool distinguishes these cases: invalid characters or length are reported immediately, and valid base64 that is not a decodable image gets its own message.
What is base64 used for?
Embedding small images directly in HTML and CSS (icons, logos, email signatures), sending images through JSON APIs, storing images in databases as text, email attachments (MIME encoding), and anywhere binary data must pass through a text-only channel. Developers meet it daily; this tool is the quick way to check what a base64 blob actually looks like.
Is it free and private?
Yes. The base64 to image converter is completely free, needs no sign-up, and runs entirely in your browser. Your data is never uploaded to a server. It works on phones, tablets and desktop computers.