Convert Image ↔ Base64
Turn an image into a data URI string, or a string back into an image file. Useful for embedding images directly in HTML and CSS, and nothing is uploaded.
Choose a file
or drop it here
How to use
- 1
Pick the direction with the tabs above.
- 2
Image → Base64: drop a file in and the string appears, ready to copy.
- 3
Base64 → Image: paste the string and hit convert to download the file.
FAQ
- What is Base64 encoding good for?
- It lets you embed an image directly in HTML or CSS as a string instead of a separate file. With no extra request to make, a handful of small icons can load marginally faster. It also helps where external files are not possible at all — email signatures, single-file documents.
- Is it true the size increases?
- Yes. Base64 turns 3 bytes into 4 characters, so the result runs about 33% longer than the file. That is why the request you save is worth it for small icons but a net loss for large photos. Stick to icons of a few kilobytes.
- Does converting change the image quality?
- No. This tool copies the file’s bytes straight into a string without recompressing. Approaches that route through a canvas do re-encode, changing the image and stripping capture metadata; that does not happen here. Convert back and you get a byte-identical file.