What is an SSH key pair?
SSH keys let you log in to servers and push code to services like GitHub without a password. A key pair has two halves: a public key you can share and place on servers, and a private key that stays with you and proves your identity.
Developers, students and system administrators need one when setting up a new server, a Git host or a deployment pipeline. This generator creates Ed25519, ECDSA or RSA pairs, gives the OpenSSH public key line, its fingerprint for checking, and PEM files for tools that need them.
How to use the SSH Key Generator
1.Choose the algorithm
Ed25519 is modern and compact; RSA 3072 or 4096 suits older systems.
2.Add a comment
Usually your name and device, so you can tell keys apart.
3.Save both keys
Add the public key to servers; keep the private key secret.
Example: an Ed25519 key
Generating an Ed25519 key with the comment me@laptop:
- Public key
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5… me@laptop
- Fingerprint
- SHA256: followed by 43 characters
- Private key
- -----BEGIN PRIVATE KEY----- (PKCS #8)
- Key length
- 256 bits
The public key line is one row, ready to paste into authorized_keys or GitHub.
Made with Web Crypto, verified with ssh-keygen
Keys are generated by your browser's Web Crypto API and never leave the page. The public key is written in OpenSSH format, ready for authorized_keys, GitHub, GitLab or a cloud console, and its SHA256 fingerprint matches what ssh-keygen -lf prints.
The private key is saved as an unencrypted PKCS #8 PEM file, which OpenSSL and most libraries read. For daily SSH use, the most secure option is still ssh-keygen on the machine that will use the key, so the private key is never copied anywhere.
Frequently asked questions
Which key type should I choose?
Ed25519 for GitHub and modern servers. RSA 3072 or larger if a system doesn't support Ed25519.
How do I add the key to GitHub?
Copy the OpenSSH public key and paste it in Settings → SSH and GPG keys → New SSH key.
Where do I put the private key?
Usually ~/.ssh/, readable only by you: chmod 600.
Does my browser support Ed25519?
Current Chrome, Edge, Firefox and Safari do. If not, choose ECDSA or RSA.
Related tools
Secret Key Generator
Random 128 to 512-bit keys as hex, Base64 and Base64URL.
Hash Generator: MD5, SHA-1, SHA-256
MD5, SHA-1 and SHA-256 hashes of text or files, with checksum compare.
Base64 Encoder & Decoder
Base64 and Base64url for text (UTF-8) and files.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
JWT Decoder
Decode a JSON Web Token's header and payload and check its expiry.
HTML Entity Encoder & Decoder
Escape text to HTML entities, or decode entities back to text.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table