# RSA Key Generator

> Generate an RSA key pair in your browser. 2048, 3072 or 4096 bits, exported as PEM — nothing is uploaded.

URL: https://uttir.com/rsa-keygen
Categories: security-tools, developer-tools, generators
Privacy: Key pairs are generated in this browser tab and never leave it. Nothing is stored and nothing is sent anywhere.

## About

Create an RSA key pair without installing anything. Choose a size, generate, and you get a private key and a public key as PEM text you can copy or download.

2048 bits is the size payment providers ask for. 3072 is a reasonable step up; 4096 takes noticeably longer to generate.

## How to use

1. **Choose a size** — 2048-bit is the usual choice for API registration.
2. **Generate** — The key pair is created in this tab.
3. **Copy or download** — Keep the private key secret; share the public key.

## FAQ

### Where are the keys stored?

Nowhere. They exist in this page only, and disappear when you reload or close the tab. Download them if you need to keep them.

### Which format do I hand to my payment provider?

Most want the public key in PEM form. Some want the private key in PKCS#1 (BEGIN RSA PRIVATE KEY) rather than PKCS#8 — the signing tool converts either format automatically.

### Is 2048 bits still enough?

For API request signing, yes — that is what payment providers specify. Use 3072 or 4096 for long-lived keys where generation time does not matter.

## Related tools

- [RSA Signature Generator (SHA256withRSA)](https://uttir.com/rsa-sign) — Sign a string with your RSA private key and get the Base64 signature. Accepts PKCS#8 and PKCS#1 keys.
- [RSA Signature Verifier](https://uttir.com/rsa-verify) — Check whether a Base64 RSA signature is valid for a message and public key. SHA256withRSA and PSS supported.
- [SNAP / QRIS Request Signer](https://uttir.com/snap-string-to-sign) — Build the stringToSign and X-SIGNATURE for Indonesian payment APIs. Handles the B2B token and transactional forms.
- [Password Generator](https://uttir.com/password-generator) — Create strong, random passwords with custom length and character sets — right in your browser.

---

For the full HTML page with the live tool, visit https://uttir.com/rsa-keygen.
This file is the markdown rendering at https://uttir.com/rsa-keygen.md. See https://uttir.com/llms.txt for a site-wide summary.
