Base64 Encoder/Decoder

Encode and decode Base64 strings. Useful for certificate data and PEM files.

Runs in your browser — nothing is sent to a server.

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

Related tools

Decoding the Base64 body of a PEM file by hand is rarely needed — paste the whole PEM into the certificate decoder instead.