Base64 Encoder / Decoder
Tool guideEncode and decode Base64 with UTF-8 support
Input: This tool processes input in your browser. Check in Network (opens in a new tab)
Mode:
Input:
Tool guide
Back to workspaceConvert text to and from Base64 encoding with full UTF-8 character support. Toggle between standard and URL-safe Base64. Shows input/output byte sizes and compression ratio. 100% client-side.
How to use it
- Choose Encode and set Input to Text. Leave URL-safe unchecked for this example.
- Paste the sample into the input editor and click Run to encode its UTF-8 bytes.
- Switch to Decode, which moves the encoded result into Input. Set Output to Text and click Run to recover café.
Worked example
- Example input
café- Example output
Y2Fmw6k=
The four visible letters take five UTF-8 bytes because é takes two. The encoded text uses eight ASCII characters, including the final padding character.
What to watch for
Base64 is reversible encoding, not encryption. Use URL-safe only when the receiving format expects Base64URL; this option changes the alphabet and omits padding when encoding.
Frequently asked question
- What if I need to inspect the bytes rather than display the word?
- Decode the same input with Output set to Hex. The bytes are 63 61 66 c3 a9; c3 a9 is the UTF-8 encoding of the final letter.