XTools Logo
XTools
Blog
/
Password GeneratorHash GeneratorBcrypt, Scrypt & Argon2AES Encrypt & DecryptTOTP Code Generator

© 2026 XTools. All rights reserved.

Privacy PolicyContact Us

    AES Encrypt & Decrypt

    Encrypt text or files with a password using AES-256, and decrypt them
    • Files never leave your device
    • Runs in your browser
    • Free, no sign-up, no watermark

    Password

    Format

    Authenticated encryption, PBKDF2-SHA256 key derivation. Wrong passwords and tampering are always detected.

    Default 600,000. Higher is slower to brute-force, and slower to open.

    Encryption runs on your device with the Web Crypto API. Passwords, keys and files are never stored or sent.

    Related tools

    • Password Generator
    • Hash Generator
    • Bcrypt, Scrypt & Argon2
    • TOTP Code Generator

    How to use AES Encrypt & Decrypt

    Encrypt and decrypt text or files with a password, using AES-256-GCM or an AES-256-CBC format that the openssl command line can read. Everything runs on your device with the Web Crypto API, and files of any size are processed in chunks.

    1. 1

      Choose Encrypt or Decrypt, and Text or Files.

    2. 2

      Enter the Password, and the Confirm password when encrypting.

    3. 3

      When encrypting, pick a Format: AES-256-GCM (the default) or OpenSSL compatible, and change the PBKDF2 iterations if you need to.

    4. 4

      Paste the text or drop the files, then click Encrypt or Decrypt.

    5. 5

      Copy the Base64 output, or download each result; with several files, use Download all (ZIP).

    Frequently asked questions

    Are my password or files sent anywhere?

    No. Encryption runs in your browser with the Web Crypto API. Passwords, keys and files are never stored or sent.

    What is the difference between the two formats?

    AES-256-GCM is authenticated encryption with a key derived by PBKDF2-SHA256 (600,000 iterations by default) and a random salt, so a wrong password or any change to the data is always detected. OpenSSL compatible produces the same bytes as openssl enc -aes-256-cbc -pbkdf2 (10,000 iterations by default), but CBC has no integrity check, so tampering is not reliably detected.

    Can I decrypt the output without XTools?

    OpenSSL compatible output, yes: the tool shows the Matching openssl command, for example openssl enc -d -aes-256-cbc -pbkdf2 -in file.enc -out file (add -a for Base64 text). The AES-256-GCM output uses this tool's own XTENC file layout, so you need this tool to open it.

    Can it open files encrypted with openssl enc?

    Yes. The format is detected from the file header. If the file was made without -pbkdf2, choose Legacy (-md sha256) for OpenSSL 1.1 and later or Legacy (-md md5) for older versions under OpenSSL settings, and match -iter if it was changed.

    What if I forget the password?

    The data cannot be recovered; there is no reset or backdoor. Short passwords can be guessed by brute force, so use 12 or more characters or a passphrase.

    What does encryption not hide?

    The output file keeps the original name with .enc added, and its size is about the same as the original, so the file name and rough size remain visible. Only the contents are protected.