Skip to content
BEAD

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