# ChaCha20 Decryption > Use this ChaCha20 decryption tool with a raw UTF-8 key. Decode a complete Hex or Base64 payload to UTF-8 text. This **ChaCha20 decryption** tool restores a compatible payload entered as Hex or Base64 using the matching raw key. It expects a 16-byte initial-state prefix followed by ciphertext. The recovered bytes are displayed as UTF-8 text; the separate IV / Nonce field is not used. ## Overview & Metadata - **Canonical URL:** https://million.tools/chacha20-decrypt/ - **Markdown Copy (.md.txt):** https://million.tools/chacha20-decrypt.md.txt - **Plain Text Copy (.txt):** https://million.tools/chacha20-decrypt.txt - **API Endpoint:** https://million.tools/api/v1/run/chacha20-decrypt (POST, Keyless, 60 req/min) - **SEO Title:** ChaCha20 Decryption Online | Payload to Text - **Alternative Names:** ChaCha20 Payload Decoder, Restore ChaCha20 Text, ChaCha20 decryptor, ChaCha20 text decryption tool, ChaCha20 online decryption - **Category:** [Cryptography](https://million.tools/cryptography/) - **Tags:** [#ChaCha20](https://million.tools/tag/chacha20/) - **Application Category:** `DeveloperApplication` - **Platform:** Web (All modern desktop and mobile browsers, requires JavaScript) - **Price:** Free ($0.00 USD, no registration or sign-up required) - **Live Calculation:** Supported (`Auto / Live` toggle enabled by default) - **Usage Statistics:** 3 views - **Published:** 2026-12-02 - **Last Updated:** 2026-12-02 - **Author:** Egor Volchenko (Developer & Author) ## Key Features - Decrypt pasted Hex or Base64 payloads - Use a raw UTF-8 key normalized to 32 bytes - Read the embedded prefix - Display recovered bytes as UTF-8 text - Update with Auto / Live or process manually - Copy output and clear text ## Parameters & Interface Controls ### Input Parameters & Options - `input_text`: Ciphertext. - `hmac_key`: Decryption Key / Password. - `cipher_iv`: IV / Nonce (Optional / Auto-generated). - `input_encoding`: `Hex` | `Hex (Ignore Non-Hex Characters)` | `Base64` | `UTF-8` | `UTF-16LE` | `UTF-16BE` | `Windows-1251 (Cyrillic)` | `Windows-1252 (Latin 1)` | ... (42 options) ### Output Fields & Metrics - `result`: Decrypted Plaintext. - **Controls:** `Decrypt`, `Clear`, `Copy`, `Fill test data`, `Auto / Live` ## Interactive Example (Test Vector) **Settings:** - Input Encoding: `UTF-8` - Decryption Key / Password: `0123456789abcdef0123456789abcdef` **Ciphertext:** ```text AAAAAAAAAAAAAQIDBAUGB8gch5zM ``` **Decrypted Plaintext:** ```text hello ``` ## How to use ChaCha20 Decryption Use the following steps to process a small test input. ### Decrypt a ChaCha20 test payload 1. Paste the complete prefixed payload into Ciphertext. Set Input Encoding: to Hex for hexadecimal data or Base64 for Base64 data. The default UTF-8 choice also reads ciphertext as Base64. 2. Enter the same 32-byte UTF-8 key in Decryption Key / Password. This form has no separate key-encoding or password-derivation selector. 3. Leave IV / Nonce (Optional / Auto-generated) blank: its typed value is ignored. The operation reads the prefix from the complete ciphertext. 4. Leave Auto / Live on for updates, or turn it off and click Decrypt. 5. Read Decrypted Plaintext. Readable output alone does not authenticate the ciphertext. 6. Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text. With Hex selected, payload `812100192a74c032ee458b8d145eb3c68f55cd85b2` and UTF-8 key `0123456789abcdef0123456789abcdef` decrypt to `hello`. Keep the full payload, including its prefix. The key is public test data. > A rejected request may leave an earlier result visible. Clear the fields and recheck the input before relying on a new calculation. ### Match the payload layout This operation expects a 16-byte initial-state prefix followed by ciphertext. This is the OpenSSL-style ChaCha20 layout with a 16-byte initial state, not a bare IETF 12-byte-nonce packet. No XChaCha20 or initial-counter setting is exposed. ### Treat the key as bytes Decryption Key / Password is interpreted as UTF-8 text, even if it looks like Hex or Base64. Internally, shorter keys are zero-padded and longer keys are truncated to 32 bytes; this does not provide password stretching. Use an exact 32-byte test key when comparing results. No output-encoding selector is exposed, so arbitrary decrypted binary data may not display faithfully. ## Frequently asked questions ### Can I supply a custom nonce or IV? The visible IV / Nonce (Optional / Auto-generated) field is ignored by this operation. Encryption generates the prefix; decryption reads it from the payload. ### Can I enter a Hex key or use a password KDF? This layout has no key-encoding or KDF selector. Key text is read as UTF-8 and padded or truncated to 32 bytes. A Hex-looking key is not decoded from Hex. ### Does this support XChaCha20? No XChaCha mode is exposed. The current operation uses the OpenSSL ChaCha20 cipher with a 16-byte initial-state prefix. ### Does it detect altered ciphertext? No. Plain ChaCha20 has no authentication tag. A wrong key or changed ciphertext can produce garbage without a reliable integrity error. ### Why can decryption fail or produce unreadable text? Check the raw key bytes, complete prefix, payload encoding, and cipher variant. The UTF-8 display can also look garbled when the original data was binary. ### Is the calculation performed only in my browser? No. This form sends the entered data to the calculation API. Use sample data instead of production secrets. ## Related Tools - [AES Encryption](https://million.tools/aes-encryption/): Encrypt text or encoded bytes with AES-256-CBC. Supply a key and copy Hex or Base64 output containing the random IV followed by the ciphertext. - [AES Decryption](https://million.tools/aes-decryption/): Decrypt compatible AES-256-CBC ciphertext from Base64 or Hex. Supply the matching key and retain the 16-byte IV prefix to recover the plaintext. ## About the Author **Egor Volchenko** — *Developer & Author* Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience. - **Links:** [x.com](https://x.com/egorleet) · [github.com](https://github.com/egorleet) · [t.me](https://t.me/egorleet) · [instagram.com](https://www.instagram.com/egorleet) · [facebook.com](https://www.facebook.com/egorleet/) · [egorleet.blog](https://egorleet.blog/) · [mastodon.social](https://mastodon.social/@egorleet) · [twitch.tv](https://www.twitch.tv/egorvolchenko) · [stackoverflow.com](https://stackoverflow.com/users/31679135/egor-volchenko) · [reddit.com](https://www.reddit.com/user/Vegetable_Window9185/) · [youtube.com](https://youtube.com/@egor-volchenko)