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.
| Option | Type | Default | What it does |
|---|---|---|---|
size | whole number | 2048 | RSA 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.
Bashcurl "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.
Related tools
Tools covered here
Related
How to use AES Encryption
Get the best out of AES Encryption: every option explained, a worked example, and what to check when the output is not what you expected.
How to use API Mock Payload Builder
Get the best out of API Mock Payload Builder: every option explained, a worked example, and what to check when the output is not what you expected.
How to use ASCII Chart
Get the best out of ASCII Chart: every option explained, a worked example, and what to check when the output is not what you expected.
How to use ASCII to Text
Get the best out of ASCII to Text: every option explained, a worked example, and what to check when the output is not what you expected.