⚡
usefultools.dev
RSA

RSA Key Pair Generator

NOVO

Generate an RSA public and private key pair of 2048, 3072 or 4096 bits and export both as PEM files in your browser.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

Keys are generated in your browser with Web Crypto and are never uploaded. Even so, do not use keys created on a shared or untrusted machine for production secrets.
⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

2048
RSA-OAEP, 2048 bits
Public key line 2 starts MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
3072
RSA-OAEP, 3072 bits
Public key line 2 starts MIIBojANBgkqhkiG9w0BAQEFAAOCAY8A
4096
RSA-OAEP, 4096 bits
Public key line 2 starts MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
Format
Private key export
Starts with -----BEGIN PRIVATE KEY----- (PKCS#8)
📖

Visão geral

RSA is a public-key system: the public key can be shared to encrypt data or verify signatures, while the private key must stay secret to decrypt or sign. This tool creates a fresh key pair with the Web Crypto API built into your browser and exports it in PEM format.

The public key is written as SPKI (BEGIN PUBLIC KEY) and the private key as PKCS#8 (BEGIN PRIVATE KEY), which OpenSSL, Node.js, Java and most libraries read directly. Choose RSA-OAEP for encryption or RSASSA-PKCS1-v1_5 / RSA-PSS for signatures. The keys are never uploaded.

Key size sets the balance between strength and speed: 2048 bits is a common minimum today, while 3072 and 4096 bits are slower to generate but give more margin. Treat keys made on a web page as suitable for learning, testing and local use, and create production keys on a machine you control.

Por que usar esta ferramenta?

  • Get test keys for JWT, signing or encryption experiments
  • Standard PEM output that OpenSSL and common libraries accept
  • Keys are created locally with the browser’s crypto engine
  • Copy or download each key as a .pem file
⭐

Recursos

🔐

Three key sizes

Create 2048, 3072 or 4096-bit keys with the standard exponent 65537.

✍️

Encrypt or sign

Pick RSA-OAEP, RSASSA-PKCS1-v1_5 or RSA-PSS and a SHA-2 hash.

📄

PEM export

SPKI public key and PKCS#8 private key, wrapped at 64 characters per line.

💾

Copy and download

Copy each key or save public_key.pem and private_key.pem.

⏳

Busy state

The button shows progress while larger keys are being created.

🔒

Never uploaded

Generation happens in your browser; nothing is sent to a server.

🛠️

Como usar

1

Choose settings

Select the algorithm, key size and hash for your use case.

2

Generate

Press Generate key pair and wait; 4096 bits takes longest.

3

Copy or download

Use the buttons under each key to copy it or save a .pem file.

4

Store the private key safely

Keep it secret and never share or commit it.

🤔

Perguntas frequentes