How to use Base64 Encode and Decode
- Choose Encode or Decode.
- Type or paste your text (or choose a file to Base64 encode). The result appears instantly.
- Copy the output. Use Swap to send the result back to the input.
About this tool
Base64 turns any data into plain letters, digits, + and /, so it can travel safely in emails, JSON, URLs, HTTP headers and data URIs. Type or paste text to Base64 encode it instantly; switch to Decode to turn Base64 back into readable text. Unlike many simple converters, this one handles UTF-8 correctly, so accented letters, non-Latin scripts and emoji survive the round trip.
Tick URL-safe to use - and _ instead of + and / without padding (the Base64URL format used in JWTs and web tokens), or split the output into 76-character lines as email (MIME) expects. You can also Base64 encode a file of up to 10 MB, and if decoded data turns out to be binary rather than text you can download it as a file. For images, the Image to Base64 tool also builds ready-to-use data URIs.