{"ok":true,"result":{"slug":"pem-der-converter","name":"PEM to DER Converter","summary":"Convert PEM to DER (as Base64 or hex, with an optional ASN.1 structure dump), or wrap Base64/hex DER in PEM armour with a detected or chosen label.","description":"Convert PEM to binary DER and back, extract the Base64 body, split PEM bundles, detect the block type and inspect the ASN.1 structure. Runs in your browser.","method":"POST","endpoint":"/api/v1/tools/pem-der-converter","plan":"free","mcpName":"pem_der_converter","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"pem-to-der: one or more PEM blocks. der-to-pem: the DER bytes as Base64 or hex.","maxLength":100000},"direction":{"type":"string","description":"Which way to convert.","default":"pem-to-der","enum":["pem-to-der","der-to-pem"],"maxLength":200000},"label":{"type":"string","description":"der-to-pem: the PEM label, or auto to detect it from the structure.","default":"auto","enum":["auto","CERTIFICATE","CERTIFICATE REQUEST","PUBLIC KEY","PRIVATE KEY","ENCRYPTED PRIVATE KEY","RSA PRIVATE KEY","RSA PUBLIC KEY","EC PRIVATE KEY","X509 CRL","PKCS7"],"maxLength":200000},"tree":{"type":"boolean","description":"pem-to-der: include an ASN.1 structure dump (like openssl asn1parse) of each block.","default":false}},"required":["input"]},"example":{"input":"-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWIxfVoyp0KgIZ3n+X+yyE91ZT/rm\npCkycrF/J+R5JFfYL0+3tnlR9wE9ZyHH1jQhY6vkSOw0wd/aUHga4HN3/g==\n-----END PUBLIC KEY-----\n","direction":"pem-to-der"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/pem-der-converter","page":"https://pithlab.com/tools/pem-der-converter"}}