search
format_align_left
JSON Formatter CSS Formatter HTML Formatter JavaScript Formatter XML Formatter SQL Formatter Exception Formatter Markdown Preview & HTML to Markdown
data_object
JSON to Excel/CSV JSON to TypeScript, C#, Go, Java, Kotlin, Python & Dart JSON ⇄ YAML / TOML Converter JSON Diff – Compare Two JSON JSON Viewer & JSONPath Tester
table_chart
Excel/CSV to JSON Excel/CSV to SQL Excel/CSV to HTML
description
Compare text Text to Hex Text to Base64 Case Converter Regex Tester Vietnamese Accent Remover & Slug Generator Word Counter Line Tools: Remove Duplicates, Sort Lines Lorem Ipsum Generator
image
Convert Image Image to Base64 Converter Image Compressor Resize & Crop Image Favicon Generator Color Palette from Image EXIF Viewer & Remover
qr_code_2
QR Code Generator QR Code Scanner VietQR Bank Transfer QR Generator Wi-Fi QR Code Generator vCard QR Code Generator (Business Card) Barcode Generator (EAN-13, Code 128, Code 39)
lock
Convert Token Convert Hash Generate Password HMAC Generator (SHA-256, SHA-512) AES Encrypt / Decrypt Online Bcrypt Hash Generator & Checker
schedule
Convert datetime Timezone Info Vietnamese Lunar Calendar Converter Date Calculator Cron Expression Parser Countdown Timer
link
Encode and Decode URLs Shorten URL URL Parser & UTM Builder HTTP Header Checker
storage
Statistics Parser Statistics Compare SQL INSERT to JSON Converter SQL Table to C# / TypeScript / Java Class
travel_explore
Create Sitemap robots.txt Generator Meta Tag Generator Open Graph Preview
terminal
Number Base Converter UUID / ULID / NanoID Generator Chmod Calculator HTTP Status Codes
palette
Color Picker
help_outline
About UsPrivacy PolicyTerms of Service
THUTOOL
search

AES Encrypt / Decrypt Online

🔒 Processed 100% in your browser – your data never leaves your device

How to encrypt and decrypt text with AES

  1. On the Encrypt tab, type the text and a strong password.
  2. Keep AES-GCM 256-bit (recommended) or choose AES-CBC / 128-bit if you need it.
  3. Click Encrypt and copy the Base64 result.
  4. To read it later, open the Decrypt tab, paste the Base64 and enter the same password.

Example: encrypting meet at 7pm with password correct horse gives a different Base64 string every time, but each one decrypts back to the same text.

Output format

The Base64 string contains, in order: 1 byte version (1), 1 byte mode (1 = GCM, 2 = CBC), 1 byte key length in bytes (16 or 32), 1 byte KDF (1 = PBKDF2-HMAC-SHA256), 4 bytes iteration count (big-endian), 16 bytes random salt, the IV (12 bytes for GCM, 16 for CBC) and the ciphertext (with the 16-byte GCM tag at the end). The key is PBKDF2-SHA256(password, salt, iterations). Because all parameters are stored, only the password is needed to decrypt.

FAQ

What if I forget the password? The text cannot be recovered. There is no back door.

GCM or CBC? GCM also detects tampering and wrong passwords. CBC is offered for compatibility only.

Is anything sent to a server? No, encryption runs in your browser with Web Crypto.

Related tools

  • Convert TokenCreate an XML sitemap by crawling your site or from an Excel/CSV list, with lastmod, hreflang and sitemap index for 50,000+ URLs.
  • Convert HashHash text or files with MD5, SHA-1, SHA-256, SHA-3, BLAKE3 and compare against a checksum. Files are hashed locally, never uploaded.
  • Generate PasswordGenerate strong random passwords or passphrases, see entropy and strength, and create up to 50 at once. Runs in your browser.
  • HMAC Generator (SHA-256, SHA-512)Compute HMAC-SHA1, SHA-256, SHA-384 or SHA-512 with a text, hex or Base64 key. Hex/Base64 output as you type, using Web Crypto in your browser.
  • Bcrypt Hash Generator & CheckerGenerate bcrypt hashes with cost 4–14 and check whether a password matches a hash. Runs in your browser, so passwords never leave your device.
  • Excel/CSV to SQLGenerate SQL CREATE TABLE and INSERT statements from Excel or CSV files with automatic column type detection. Runs in your browser.
@Made by THUTOOL