AES Encryption Online uses AES-256-GCM to turn text into one authenticated JSON package, and the same password restores that unchanged package to text.

This step-by-step workflow runs entirely in the browser. The AES Encryption Online page uses the Web Crypto API, while the plaintext, password, derived key, and decrypted result remain in the current page and are not submitted to Lizely.

The workflow suits small text snippets, demonstrations, controlled exchanges, and compatibility experiments. Its important operational rule is simple: preserve the complete JSON package exactly as produced, and communicate its password through a separate secure channel.

aes encryption online step by step
AES Encryption Online Step by Step: Text Guide

What the browser creates

Choosing Encrypt produces a versioned JSON package rather than a bare string of ciphertext. The package contains the encryption and key-derivation labels, iteration count, random salt, initialization vector, and authenticated ciphertext. The authenticated ciphertext includes the GCM authentication tag.

The package is self-contained for decryption except for the password. Its salt and initialization vector are visible by design, but the password is never written into the output. A recipient therefore needs both items: the unchanged package and the password that was used to create it.

This format is specific to AES Encryption Online. Its cryptographic ingredients are standardized, but its surrounding JSON layout is not a universal encrypted-file format.

Encrypt a text message

Prepare a unique, high-entropy passphrase from a trusted password manager before beginning. The interface requires at least 12 UTF-8 bytes and allows longer passphrases, but meeting that minimum does not make a short, reused, predictable, or leaked password safe.

  1. Choose Encrypt. Enter the plaintext exactly as it should be recovered later, including its spaces, punctuation, line breaks, and characters.
  2. Enter the password. The password is converted to UTF-8 and processed with PBKDF2-SHA-256. Use the same password later; do not substitute a shortened or visually similar version.
  3. Run the encryption. The tool generates a fresh 16-byte random salt and 12-byte random initialization vector for every encryption. It derives a non-exportable 256-bit AES key with 210,000 PBKDF2 iterations and encrypts the text with AES-256-GCM and a 128-bit authentication tag.
  4. Copy the complete JSON package. Preserve every field and character. Do not manually remove metadata, substitute ciphertext, reuse values from an older package, or insert padded Base64 where base64url is expected.
  5. Arrange a protected transfer. Send or store the package as text through a controlled channel, and send the password separately. Do not treat the package’s visible salt and IV as substitutes for the password.

Transfer the package without changing it

The salt and IV do not need secrecy. The salt supports key derivation, while the IV provides the uniqueness required for AES-GCM under a given key. The password is the secret that must remain protected.

  • Copy the full output. A partial package will fail strict validation, and even a small accidental edit can make an otherwise valid package unusable.
  • Keep the password separate. Putting the package and password together in one message or file defeats the intended separation and may expose both to the same destination.
  • Store a clean master copy. If transfer systems can alter characters, preserve the original package in a trusted location so it can be copied again without reconstruction.
  • Do not “normalize” the package by hand. Incorrectly normalizing package text or replacing base64url with conventional padded Base64 can cause validation to fail.

Decrypt and recover the text

A valid package can be decrypted only with the password used during encryption. GCM authenticates the protected bytes as well as decrypting them.

  1. Choose Decrypt. Do not paste the plaintext or password into the package field.
  2. Paste the unchanged JSON package. Use the complete original output rather than a reconstructed, shortened, or reformatted version.
  3. Enter the same password. If the password has been stored in a password manager, retrieve that exact entry rather than creating a new one.
  4. Run decryption. A successful authentication returns the decrypted text on the page. An authentication failure is reported without any partial plaintext, so there is no trustworthy partial result to salvage.

Package parameters at a glance

The JSON package declares version 1, AES-256-GCM, PBKDF2-SHA-256, and the iteration count. Before decryption, the tool validates labels, numeric limits, field syntax, exact salt and IV lengths, and minimum ciphertext length.

Setting or field Verified value Practical meaning
Package version 1 Identifies the JSON layout used by this tool.
Cipher AES-256-GCM Uses a 256-bit key and a 128-bit authentication tag.
Key derivation PBKDF2-SHA-256 Derives the AES key from the UTF-8 password.
Iterations 210,000 Sets the password-guessing work factor used by the tool.
Salt 16 random bytes Fresh for each encryption, stored openly, and not secret.
Initialization vector 12 random bytes Fresh for each encryption, stored openly, and used for GCM uniqueness.
Encrypted fields Unpadded base64url Stores the salt, IV, and authenticated ciphertext, including the GCM tag.
Password rule At least 12 UTF-8 bytes Longer passphrases are accepted, but the password remains outside the package.

AES-GCM is standardized in NIST SP 800-38D, while unpadded base64url follows RFC 4648. Base64url is an encoding format, not another layer of encryption. The implementation is checked against NIST AES-GCM vectors and RFC 4648 base64url fixtures, but those checks do not certify the browser, device, password choice, storage location, or broader workflow.

Why identical input creates different output

Encrypting the same plaintext with the same password twice produces two different JSON packages because each run generates a fresh salt and IV. The new salt changes the derived key, and the new IV provides a distinct GCM encryption input.

This difference is expected and prevents deterministic ciphertext from revealing that two packages contain identical text. Do not treat different output as evidence of corruption, and do not use package equality as an equality test for the underlying plaintext.

Fix package and password errors

  • Authentication failed: The password may be wrong, or protected bytes may have changed. Re-enter the original password and restore the original package. The tool reports the failure without returning partial plaintext.
  • Package validation failed: Check for missing fields, incorrect labels, malformed values, changed numeric limits, incorrect salt or IV lengths, or insufficient ciphertext. Restore the package rather than editing it into place.
  • The encoding looks wrong: The package expects base64url. Removing a field, incorrectly normalizing its text, or inserting conventional padded Base64 can make strict validation fail.
  • The password is lost: Recovery is not possible through the tool. There is no password escrow, account backup, or server-side key management, so the password must be preserved separately.

Understand the browser security boundary

Local processing means the text is not uploaded to Lizely. It does not make the surrounding device trustworthy by itself. Browser extensions, compromised devices, clipboard managers, screen capture, shared computers, and copied package destinations remain outside the cryptographic boundary.

PBKDF2 raises the cost of password guessing, but it cannot turn a weak secret into a strong one. Use a unique passphrase with sufficient entropy and protect it separately from the package. Clear sensitive content and close the tab when the surrounding device is not trusted.

This tool is not a managed vault, enterprise key-management service, encrypted-backup system, or replacement for a reviewed application-level cryptographic design. Its supported role is controlled text encryption and decryption in the browser.

Open the package in another application

Another program can read the package only if it reproduces the same UTF-8 password handling, PBKDF2 parameters, AES-GCM tag placement, unpadded base64url encoding, and JSON fields. A generic AES decryptor that expects raw ciphertext will not necessarily accept this package.

When compatibility matters, use the complete version 1 package without changing it and test the intended consumer before relying on the exchange. The format can be reproduced because its rules are declared, but it is not automatically interchangeable with another service’s encrypted-text format.

Related reading: ASCII Code Converter to Text: Decode 0–127 Exactly.

Related reading: Binary to Text Round Trips: Encode, Decode, and Verify.