DevTools

PEM / XML Key Converter

Convert RSA keys between PEM (OpenSSL) and XML (C#/.NET) formats.

Automatically detects format. Supports Public and Private keys.

About Key Formats

Different programming languages and platforms use different formats to store RSA keys.

  • PEM (Privacy Enhanced Mail): The standard format for OpenSSL, Linux, PHP, Node.js, and many others. It usually starts with -----BEGIN PUBLIC KEY----- or -----BEGIN RSA PRIVATE KEY-----.
  • XML (Extensible Markup Language): The standard format used by Microsoft .NET framework (C#, VB.NET). It uses tags like <RSAKeyValue>, <Modulus>, and <Exponent>.

This tool allows you to easily convert keys between these two common formats without sending your private keys to a server.