Tech News, Tech & Coding · Free Online Tools

IT Question Answer
Tools
Developer & Text ToolsFree100% Client-Side

PGP Encryption & Decryption

Secure client-side PGP key generation, encryption, and decryption.

100% privateRuns instantly in-browserUpdated regularly

Advertisement

Runs in your browser

Your input is processed on your device and is not uploaded to our servers.

Fast

No queues and no upload wait, so results appear as soon as you act.

Clean and simple

Dark mode, no popups, and no signup.

What you get

  • Generate ECC (ed25519) PGP key pairs
  • Encrypt messages with public keys
  • Decrypt messages with private keys

What PGP is

PGP (Pretty Good Privacy), standardised as OpenPGP, lets two people exchange private messages without first sharing a secret. Each person has a public key to hand out and a private key to guard. You encrypt a message with the recipient public key, and only their private key can open it.

This tool uses the OpenPGP library to generate an ed25519 key pair, encrypt text with a public key and decrypt it with a private key. Everything runs in your browser. The output is standard ASCII-armored OpenPGP text that other OpenPGP software such as GnuPG can read.

How to use it

  • Generate a key pair and copy the public key and the private key. Save the private key somewhere safe.
  • Send your public key to the people who want to write to you.
  • To write to someone, paste their public key and your message, then encrypt and send the result.
  • To read a message sent to you, paste it with your private key and decrypt.

Public and private key, in short

The public key is safe to publish; it cannot be used to work out the private key. The private key must never be shared. If you lose it, you cannot read messages sent to you, and nobody can recover it for you. If it leaks, treat every message encrypted to it as exposed and make a new pair.

Errors people hit

  • Invalid key: the text must include the full header and footer lines (BEGIN and END), with nothing cut off.
  • Cannot decrypt: the message was encrypted for a different public key than the private key you pasted.
  • A public key cannot decrypt anything. Only the matching private key can.

Security notes

A web page is convenient for quick tests and learning. For long-term personal keys, create them with GnuPG or another trusted local tool, protect the private key with a passphrase, and back it up offline.

Related tools

Advertisement

Frequently asked questions

ed25519 (elliptic curve) OpenPGP keys.

Yes. The messages and keys follow the OpenPGP standard, so GnuPG and other OpenPGP software can use them.

No. Keys are created and used in your browser and are never sent to a server.

Messages encrypted to its public key cannot be read. There is no recovery, so keep a safe backup.

Not in practice. That is the security basis of public-key cryptography.