DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeSecurity / CryptoSSH Key Converter

Example: SSH Key Converter

A worked example, rendered from real sample data. Sign in to run the tool on your own input.

Input
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILkvbh4xUoa/9NyGEesBRyUTOaAyYMo8/QbXR0m3Hs5J deploy@build-server
Output
═══ Key ═══
Detected format: OpenSSH authorized_keys
Type: ED25519 (ssh-ed25519)
Size: 256 bits
Comment: deploy@build-server
Blob: 51 bytes

═══ Fingerprints ═══
SHA256: SHA256:4+xezGYJ4WOiaUHezau9HEt1Y5+SqJWFeUi3pIr3ka8
MD5: MD5:41:98:a7:a5:ea:25:09:e9:8a:fc:1e:0b:bb:10:d1:f7
ℹ SHA256 is what OpenSSH 6.8 and later print. MD5 still shows up in AWS, GitHub and Jenkins consoles.

═══ OpenSSH (authorized_keys, .pub) ═══
  ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILkvbh4xUoa/9NyGEesBRyUTOaAyYMo8/QbXR0m3Hs5J deploy@build-server
ℹ What sshd reads and what every hosting provider asks for.

═══ RFC 4716 (SSH2, Tectia, older PuTTY) ═══
  ---- BEGIN SSH2 PUBLIC KEY ----
  Comment: "deploy@build-server"
  AAAAC3NzaC1lZDI1NTE5AAAAILkvbh4xUoa/9NyGEesBRyUTOaAyYMo8/QbXR0m3Hs5J
  ---- END SSH2 PUBLIC KEY ----
ℹ ssh-keygen -e -f key.pub produces this.

═══ PEM SubjectPublicKeyInfo (PKCS#8) ═══
  -----BEGIN PUBLIC KEY-----
  MCowBQYDK2VwAyEAuS9uHjFShr/03IYR6wFHJRM5oDJgyjz9BtdHSbcezkk=
  -----END PUBLIC KEY-----
ℹ What openssl, Java and most TLS libraries expect.

═══ JWK ═══
  {
    "crv": "Ed25519",
    "x": "uS9uHjFShr_03IYR6wFHJRM5oDJgyjz9BtdHSbcezkk",
    "kty": "OKP"
  }
ℹ For JOSE libraries and JWKS documents.

═══ Findings ═══
✓ Modern key type, adequate size, and a usable comment.

═══ Do the same locally ═══
  ssh-keygen -l -f key.pub                 # fingerprint
  ssh-keygen -e -m RFC4716 -f key.pub      # to RFC 4716
  ssh-keygen -e -m PKCS8 -f key.pub        # to PEM
  ssh-keygen -i -m PKCS8 -f key.pem        # back to OpenSSH

About SSH Key Converter

SSH Key Converter preview - Security / Crypto tool

Convert an SSH public key between OpenSSH, RFC 4716, PEM and JWK, with both fingerprints. Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.

Use Cases

  • Convert an RSA PEM key to OpenSSH format for use with a modern server configuration.
  • Convert a PuTTY .ppk key to OpenSSH format when switching from Windows to Linux/macOS.
  • Extract the public key from a private key file to add to authorized_keys on a remote server.
  • Convert between encrypted and unencrypted key formats for automation contexts where passphrase entry is impractical.

Tips

  • Convert PEM private keys to OpenSSH format for modern SSH clients — OpenSSH format (OPENSSH PRIVATE KEY) uses bcrypt-based encryption, which is more resistant to offline brute force than the legacy PEM format.
  • Verify the converted key by extracting the public key from both formats and comparing fingerprints — matching fingerprints confirm the conversion preserved the key.
  • PuTTY (.ppk) format is only needed on Windows with PuTTY clients; OpenSSH format works on Linux, macOS, and modern Windows using the built-in OpenSSH client.

Fun Facts

  • SSH (Secure Shell) was created by Tatu Ylönen in 1995 after a password-sniffing attack on his university network. He open-sourced the protocol specification, which led to the SSH-2 standard (RFC 4251) in 2006.
  • OpenSSH, the dominant SSH implementation, ships with every major Linux distribution, macOS, and Windows 10+ by default. It is maintained by the OpenBSD project and handles an estimated 80%+ of all SSH connections globally.
  • Ed25519 keys (introduced in OpenSSH 6.5 in 2014) are preferred over RSA-4096 for new keys: they are faster to generate, produce shorter signatures, and are resistant to side-channel attacks that affect RSA.

FAQ

Which SSH key algorithm should I use?
Ed25519 is the current best choice: fast, short signatures, and resistant to implementation errors. RSA-4096 is a safe alternative for compatibility with older SSH servers. Avoid RSA-1024 and DSA — both are deprecated.
Is it safe to convert keys in a web tool?
Only if the tool processes keys client-side without server transmission. Private key material should never leave your machine. Verify the tool's security model before pasting private keys.

Related Security / Crypto Tools

Hash Generator v2HMAC Generator v2JWT EncoderBcrypt Hash TesterHMAC GeneratorPassword Strength AnalyzerTOTP / 2FA GeneratorSAML Response Decoder
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback