Base64 Encoder and Decoder
Convert UTF-8 text to Base64 or create a Data URI from a file right in your browser.
Convert Base64 text
Processed locallyHow to use it
Choose a conversion direction and paste the input. To make a Data URI, select or drag in an image or other file up to 10 MiB.
Frequently asked questions
What is Base64 and how does it handle UTF-8?
Base64 represents bytes using ASCII characters. When encoding text, the tool first turns accented characters, emoji, and other Unicode characters into UTF-8 bytes. Decoding reverses that process.
How is a Data URI different from plain Base64?
A Data URI adds a prefix with the media type and the base64 indicator before the encoded bytes. Software that accepts Data URIs can use that information to interpret the file.
Can I paste an image's Base64 into the text decoder?
The text decoder expects valid UTF-8 bytes. For an image or other binary file, use the file section to generate a Data URI from the original.