Base64 Encoder & Decoder
Encode or decode Base64 text and files, Unicode-safe.
File → data URI
Drop a small file
Up to 2 MB · the data URI is copied to your clipboard
Base64 is an encoding, not encryption. Anyone can decode it — never use it to hide secrets.
Private by design. This tool runs entirely in your browser. Your input is processed on your own device and is not uploaded by DO101.
About the Base64 Encoder & Decoder
Convert text to Base64 and back, including full Unicode and emoji, which naive implementations mangle. You can also encode a file into a Base64 data URI for embedding in CSS or HTML.
How to use it
- 1Choose encode or decode.
- 2Paste your text, or drop a file to get a data URI.
- 3Copy the result.
What you get
- Unicode and emoji safe
- URL-safe Base64 variant
- File to data URI
- Instant swap between encode and decode
- Runs offline in your browser
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it. Never use it to protect passwords or secrets.
What is URL-safe Base64?
A variant that replaces + and / with - and _ so the string can sit inside a URL without escaping. JWTs use it.
Why do emoji break in other tools?
The classic btoa() function only accepts Latin-1. DO101 encodes to UTF-8 bytes first, so every character survives the round trip.
Keep going
People who use this tool usually reach for these next.
Percent-encode text so it is safe inside a URL.
Beautify, minify and validate JSON with error positions.
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
Read the header and payload of a JSON Web Token.