Image ↔ Base64
Convert images to Base64 (data URI, CSS, <img>, Markdown) and decode Base64 back to an image file.
Image ↔ Base64 FAQ
How do I convert an image to Base64?
Choose Image to Base64 and drop or paste your image. The data URI appears at once; switch to Base64, CSS, <img> or Markdown for other forms, then click Copy.
How do I convert Base64 back to an image?
Choose Base64 to Image and paste the text, with or without the data:image/…;base64, prefix. The image appears with its type, size and dimensions, and Download saves it with the correct extension.
Why is my Base64 string bigger than the image?
Base64 writes every 3 bytes as 4 text characters, so it is about a third larger than the file. That is why large photos should stay as normal image files.
What is the difference between Base64 and a data URI?
Base64 is just the encoded text. A data URI adds a prefix such as data:image/png;base64, so browsers know the type and can use it directly in src or url().
Are my images uploaded?
No. Encoding and decoding happen in your browser, and nothing is sent anywhere or stored.