Web Tools DocGuides

How to use RSA Key Generator

Get the best out of RSA Key Generator: every option explained, a worked example, and what to check when the output is not what you expected.

Updated August 1, 2026

What it does

Generate browser-local RSA key pairs and export them as PEM-encoded public and private keys. It runs entirely in your browser — your input never leaves your device.

Options

Every setting this tool exposes, straight from the code that validates it.

OptionTypeDefaultWhat it does
sizewhole number2048RSA modulus length in bits (2048, 3072, or 4096). Defaults to 2048.

Worked example

Run these settings on the tool page:

  • size: 2048

You get:

{
  "algorithm": "RSA-OAEP",
  "hash": "SHA-256",
  "modulusLength": 2048,
  "fingerprint": "d5:32:6f:16:f5:06:c4:d9:1b:06:a8:08:64:15:81:9e:5c:a2:f7:df:d3:c4:fe:ea:95:b5:a0:a5:57:45:6d:52",
  "publicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3jjOBeT1qwscDOhHhSxS\n4CCQUF1OKzVHa3R0Znfs8pxVZPCyg9bFAgaRdBYD7zueC69ZMDpyWsZTwMy7Gl4p\nfS1kiyDazNkzqxgY9r7HzVepYqL9otaBayatU0/MlUlQHIyst34GGb13470FaOSg\n0dx1YTu3yWFb++sCzmi0u80dL9x+VLTuUU8x7rFVQjStnRn5z9dinNacuGDGMDHi\nc6NZaVFSn/r11uZSWuSddGTyEJXuPKLbycFOiLSdAPiYwTpW/JNwQa/pzU3LA87q\n0aFt7BGlrFbDVC3kxh0BuDHMs+qeTMA8x43
… (truncated)

Troubleshooting

  • It is slow on very large input. Everything runs in your browser, so speed depends on your device. Very large inputs are best split up, or run through the API where the work happens on our servers.

Automating it

The same logic is available as a REST endpoint, so you can run it from a script, a CI job or your own app.

Bash
curl "https://api.toolsxpo.com/v1/rsa-generator" \
  -H "Authorization: Bearer $TOOLSXPO_KEY"

It costs 3 credits per successful call. See the full endpoint reference, or try it in the playground.

Tools covered here

RSA Key Generator

Security

security

Related