---
title: "Encrypt Text Online — AES Password Encryption | fbuff"
description: "Encrypt and decrypt text with a password using AES-GCM and the browser's Web Crypto API. Free, no signup, and your text and password never leave your device."
url: https://fbuff.com/tools/text-encryptor/
---

Security & Privacy

# Text Encrypt / Decrypt

Encrypt and decrypt text with a passphrase using AES-GCM. Everything runs locally with Web Crypto.

Workspace

Passphrase

Input

Output

Encryption and decryption happen entirely in your browser. Nothing is sent anywhere.

![Envelope sealed with a padlock and a key beside it](https://fbuff.com/content/text-encryptor.webp)

## How to use

1. Enter a passphrase. Use a long one, such as four or five random words, and keep it somewhere safe: without it the text cannot be recovered.
2. Type or paste your text and click Encrypt. The output is a block of letters and digits starting with v1:, safe to paste into an email, a note or a chat.
3. To read it, paste that block into Input, enter the same passphrase and click Decrypt.

## How the encryption works

The text is encrypted with AES-256-GCM through the Web Crypto API built into your browser, the same standard used for HTTPS. The 256-bit key is derived from your passphrase with PBKDF2 (SHA-256, 100,000 rounds), which makes each guess at the passphrase slower for an attacker.

Every time you encrypt, a new random salt and IV are generated, so the same text and passphrase give a different output each time. GCM also checks integrity: if a single character of the encrypted text is changed, or the passphrase is wrong, decryption fails instead of returning garbage.

## When it is useful

Sending a Wi-Fi password, a door code or account details over email or chat, where messages are stored for years; keeping private notes in a cloud document; or passing a secret to a coworker. Send the encrypted text one way and the passphrase another way, for example the text by email and the passphrase by phone call.

| Do | Don't |
| --- | --- |
| Use a long passphrase of several random words | Reuse your email or bank password |
| Share the passphrase through a different channel | Send the passphrase in the same message |
| Store the passphrase in a password manager | Rely on remembering a one-off passphrase |

## Limits to know

The protection is only as strong as the passphrase: a short or common one can be guessed by trying millions of options. There is no reset or recovery, by design, because nothing is stored anywhere. For files, very large text or ongoing private conversations, a dedicated tool such as an end-to-end encrypted messenger or encrypted archive is a better fit.

## Frequently asked questions

### Is this real encryption or just encoding?

Real encryption: AES-256-GCM with a key derived from your passphrase. Base64 alone is only encoding and can be reversed by anyone.

### I forgot the passphrase. Can I get my text back?

No. Nothing is saved on a server, and without the passphrase the text cannot be decrypted.

### Why is the output different every time?

A new random salt and IV are used on each run. It is expected, and every version decrypts with the same passphrase.

### Is my text sent anywhere?

No. Encryption and decryption run in your browser with the Web Crypto API; nothing is uploaded.

Found a problem or have an idea? [Report a problem](https://fbuff.com/contact/?tool=text-encryptor)

Share

## You might also like

- - [MD5 Encoder Generate MD5 hashes from text locally in your browser.](https://fbuff.com/tools/md5-encoder/)
- - [Redact PDF & Images Black out Social Security numbers, account numbers and other private details in a PDF or photo for good. Free, nothing uploaded.](https://fbuff.com/tools/pdf-redactor/)
- - [Password Generator Generate strong random passwords instantly. 100% client-side.](https://fbuff.com/tools/password-generator/)
- - [2FA Code Generator Generate TOTP codes from your 2FA secret key. Never leaves your browser.](https://fbuff.com/tools/2fa-code/)
- - [Image Metadata Stripper Remove EXIF, GPS, and all metadata from images locally.](https://fbuff.com/tools/image-metadata-stripper/)
- - [Hash Generator Generate SHA-1, SHA-256, SHA-512 hashes from text or files. 100% client-side.](https://fbuff.com/tools/hash-generator/)
- - [PHP2Shell Checker Check if your PHP version is patched against PHP2Shell (CVE-2026-109618, CVE-2026-109619) from php -v or phpinfo() output.](https://fbuff.com/tools/php2shell-checker/)
- - [DarkSword iPhone Check Type your iOS version to see if your iPhone is open to DarkSword or P7 DarkSword spyware, and the update that fixes it.](https://fbuff.com/tools/darksword-check/)
- - [KSMBD Exposure Checker Paste a few command outputs to see if a Linux server is exposed to the unpatched KSMBD flaws ZDI-CAN-33774 and ZDI-CAN-33549, and turn KSMBD off.](https://fbuff.com/tools/ksmbd-checker/)
- - [CVE-2026-98432 Checker Check if a Linux server has the IPv4 TCP use-after-free CVE-2026-98432 (CVSS 9.8) that Anthropic exploited over MPTCP, and how to patch or harden it.](https://fbuff.com/tools/cve-2026-98432-checker/)
