CSR Decoder

: Decode a certificate signing request and check its subject, domain names, key and signature
Limits: 977 KB · .csr, .pem, .req or .der · A CSR holds only a public key: never paste the private key here.
Decoded
Paste a PEM certificate signing request, open a file, or try the example.

Paste a PEM certificate signing request (CSR) and read what you are about to send to a certificate authority: the subject, the hostnames in the subject alternative names, the public key, and whether the request's signature checks out. Use it to catch a missing SAN, a weak key or a wrong name before the CA does.

  1. Paste into Certificate signing request: one or more -----BEGIN CERTIFICATE REQUEST----- blocks, or bare base64 DER. Press Open file or drop a .csr, .pem, .req or binary .der file (shown as PEM), or press the Example button.
  2. Check the line under Decoded: 1 CSR · no warnings, a count of warnings, or the reason the input could not be read.
  3. Each CSR gets a card headed by its common name, then Signature valid, or Signature invalid, Signature not checked or Signature could not be checked followed by the reason, then its warnings (errors before warnings before notes) and its fields: Subject, one row per name part, Subject alternative names, Public key, Public key SHA-256 (hex and Base64), Signature algorithm, Signature and Version.
  4. Press Copy all for every CSR as tab-separated text, Copy PEM on a card for its normalised PEM, or the copy button on a row for the subject, the SANs or a fingerprint.

The CSR behind the Example button, decoded by the same parseCsrs function the page uses. It raises no warnings. The page also shows the Public key SHA-256 fingerprint and the signature check, which use WebCrypto and are left out here; the signature on this CSR verifies as valid.

Input
-----BEGIN CERTIFICATE REQUEST-----
MIICwzCCAasCAQAwPDEYMBYGA1UEAwwPc2FtcGxlLnRvbXouZGV2MRMwEQYDVQQK
DApFeGFtcGxlIENvMQswCQYDVQQGEwJBVTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAKtLcfZR/SKQ0DKREXdxQHWL6l+S0pu5Fls5buQqJyaeNbsovQi6
eTybMY3oucqlUxsZgDcLBV9COXc3JGYNW4eaSA6gygYw075/DXUNs815ZPNwsZxI
TSO1JGAC2MDuYwc0Ip6hlFTEpoax7VPEZNFuGfPblFyVNyS/Zqt56qwSUH8JlbOB
EsoNg6HfDr5gBQGgZDB/pAPpmX2ZCj5O0CCMVZRCYErJRwNcJxqjAPMZ0ARB2WzE
GckH6fzVSNwv8yHubCjDuDAA87DxZfpswrWBQs8KoJHVF5uS+QlbKXAlxlwZxNjc
Co8/tFza1Yn05t/XYLS+2PRkUk67wKDhdD0CAwEAAaBCMEAGCSqGSIb3DQEJDjEz
MDEwLwYDVR0RBCgwJoIPc2FtcGxlLnRvbXouZGV2ghN3d3cuc2FtcGxlLnRvbXou
ZGV2MA0GCSqGSIb3DQEBCwUAA4IBAQA6hmDK8TLABdcmVXl0s/0UbkSh35b02SlD
fZgkxVU9HV68+oxrdoD/BJsio5H+JZB5L7/NLLvmirXsZSpx9wtbAWZfCEqtiUiI
BlXYjRIIpfzD0MvXJkdH2gMkgkF6L15mezysFZBVnx6Q2RBwsjfrXVI/k126+Dh/
WsB05nD2Ws1DByn2qdqAcRH8Sp62VDU5ghFFCZmfNgGvvnrSvOid0uZxYELy6diV
uY0IJP8B6J3A5duG0xSarMAphUeLKh9xcCedTBIQY9Vsdk8BI4ulTgbJGJ57RsWj
uKiHAsDmX0fPXRipgaP91r07+eIiT7gIjXbZNqJTvfr7Mq2Q+jjH
-----END CERTIFICATE REQUEST-----
Output
[1] sample.tomz.dev
subject              CN=sample.tomz.dev, O=Example Co, C=AU
alt names            DNS:sample.tomz.dev, DNS:www.sample.tomz.dev
public key           RSA 2048-bit
signature algorithm  SHA-256 with RSA
version              1 (encoded 0)
extensions           subject alternative name
warnings             none

How do I create a CSR with OpenSSL?

Run openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr -subj "/CN=example.com/O=Example Co/C=AU" -addext "subjectAltName=DNS:example.com,DNS:www.example.com" (OpenSSL 1.1.1 or later, SHA-256 by default). Keep example.key private and give the CA only example.csr.

How do I view a CSR locally instead?

Run openssl req -in example.csr -noout -text -verify. It prints the subject, key, requested extensions and a line ending in verify OK when the signature matches (OpenSSL 3 prints Certificate request self-signature verify OK). This page shows the same fields, plus the warnings above, without leaving your browser.

Does "signature valid" mean the CSR is safe to submit?

No. It means the request is intact and was signed by the holder of the matching private key. Whether the subject and SANs are correct, and whether you control those domains, is for you and the CA to establish.

Is it safe to paste a CSR into an online decoder?

A CSR contains only a public key and the names you want certified, which end up in a public certificate anyway. Here it is decoded in your tab and never sent. Do not paste the private key; a PRIVATE KEY block is ignored and not read.

Runs entirely in your browser. Nothing is uploaded.