Converters
Base64 Encoder & Decoder
Encode Unicode text as standard Base64 or decode it to UTF-8. Try a round trip, copy or download the result, and troubleshoot padding and invalid text.
About this tool
When to use it
Encode Unicode text as standard Base64 or decode it to UTF-8. Try a round trip, copy or download the result, and troubleshoot padding and invalid text.
How to use it
To inspect a Base64 text field in a test response, choose Decode and paste just the encoded field. For a fixture, choose Encode and enter ordinary text. Use output as input switches direction for a round trip. Copy or Download exports the result.
Guide updated . Examples checked against this implementation.
Worked examples
Round-trip Unicode text
Input
caféExpected output
Y2Fmw6k=Encode produces this standard Base64 value; Decode restores café. The accented letter occupies two UTF-8 bytes.
Errors and unsupported input
a===The padding is malformed. Copy the full original Base64 value rather than guessing missing characters; padding may contain at most two final equals signs.
/w==This decodes to a byte that is not valid UTF-8 text. Use the Base64 File Converter when the source represents binary data, such as a PDF or image.
Continue this workflow
- Base64 File Converter: Decode binary Base64 to a file instead of forcing it through a UTF-8 text decoder.
- URL Encoder & Decoder: Percent-encode a Base64 value before inserting it into a query parameter so +, / and = retain their meaning.
- JWT Parser: Inspect the Base64URL segments of a complete JWT.
Format references
Questions
Frequently asked questions
Can Base64 protect a password or API key?
No. Anyone with the encoded text can recover its bytes. Use the security controls required by the destination system.