DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeSecurity / CryptoAES Encrypt / Decrypt

About AES Encrypt / Decrypt

AES Encrypt / Decrypt preview - Security / Crypto tool

AES-256-GCM encryption with authenticated ciphertext (iv:tag:body). Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.

Use Cases

  • Encrypt a small config value before storing in version control
  • Verify an encryption library's output against a reference
  • Teach GCM mode using controlled inputs and outputs
  • Spot-check a coworker's AES implementation for correctness

Tips

  • Uses AES-256-GCM — authenticated encryption
  • Output format: iv:tag:ciphertext (all base64)
  • Any key length is accepted; it's SHA-256'd to 32 bytes internally

Fun Facts

  • AES (Rijndael) was selected by NIST in 2001 after a 5-year public competition. It's approved for TOP SECRET data in US government systems.
  • AES operates on 128-bit blocks regardless of key size. The key size (128, 192, or 256 bits) only changes the number of encryption rounds (10, 12, or 14).
  • Intel added dedicated AES-NI hardware instructions in 2010, making AES encryption essentially 'free' on modern CPUs — about 1 cycle per byte.

FAQ

Is AES-256-GCM secure?
Yes — GCM mode provides both encryption and authentication. A tampered ciphertext fails to decrypt, not just decrypts wrong. The NIST-recommended authenticated cipher.
What's the IV and tag?
IV (initialization vector) is a random 96-bit nonce — must be unique per encryption. Tag (128-bit) is the authentication. Output format: iv:tag:ciphertext, all base64.
Can I reuse an IV?
Never — reusing an IV with the same key breaks GCM's security (key recovery becomes possible). The tool generates a fresh IV per encryption.
Is this safe for production?
The algorithm yes. The tool is for debugging/teaching. For production encryption, use your language's vetted library (libsodium, Node crypto).

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