PEM Key Formatter
Validate and reformat PEM blocks — keys, certificates, CSRs — into clean 64-character lines.
PUBLIC KEYBody contains non-base64 characters.
Reformatted PEM
-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAylzXLG1ZeR1Ng3X37/sZ 9pYNQ9HbbqEJsZkVcKnT9OvB1MaglP7eRm6jKAEbE6OoFb3PpNX79V0NTqpqEUv1 example_data_for_demo_only_replace_with_a_real_PEM_block_thanks_ QIDAQAB -----END PUBLIC KEY-----
🔒 PEM blocks are parsed locally. Nothing is uploaded.
What this does
- Detects each
-----BEGIN X-----/-----END X-----block. - Verifies the base64 body decodes cleanly.
- Reformats each body to 64-character lines per RFC 7468.
- Reports the byte length of the decoded DER for each block.
It does not verify signatures or parse the DER structure — if you need that, a certificate decoder is the right next step.
You might also like
- AES Encrypt / DecryptEncrypt or decrypt text with AES-GCM, deriving a key from a passphrase via PBKDF2 — all in your browser.
- Base64 Encoder / DecoderEncode or decode Base64 strings instantly.
- Escape / UnescapeEscape or unescape strings for JSON, JavaScript, HTML attribute, XML, and SQL contexts.
- Hash GeneratorCompute SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or a file.