Base64 Encoder/Decoder
Encode and decode Base64 strings. Useful for certificate data and PEM files.
No result yet
Enter text to encode it as Base64.
Why Base64 turns up everywhere in TLS
PEM files — certificates, keys, CSRs — are DER binary structures wrapped in Base64 with BEGIN/END lines. DKIM public keys, basic-auth credentials and many API tokens use the same encoding. This tool converts text both ways entirely in your browser.
Common issues
- Stray whitespace or line breaks — the decoder strips whitespace for you, but a truncated string cannot be recovered.
- Base64 is not encryption — it is a plain re-encoding anyone can reverse; never treat it as protection for secrets.
Related tools
Decoding the Base64 body of a PEM file by hand is rarely needed — paste the whole PEM into the certificate decoder instead.