Decodex

DECODEX · BASE64

Base64 practical guides

Browse worked examples for file recovery, text encodings, API payloads and command-line tools.

Files, compression and size limits

Invisible differences in text

APIs, email and data formats

Code and command-line examples

Base64 fundamentals and common errors

Verification method

These fixed, public fixtures run against the same file codec and character codecs used by the converter. The JavaScript cases additionally check browser-native btoa, TextEncoder, URLSearchParams and SHA-256. Expected outputs are published before any script runs; the button shows actual results in your browser. No input is uploaded.

Checked on 2026-10-21. This is a correctness check with small fixtures and one 100,000-character case, not a speed benchmark or a guarantee for every file. The four-byte file is synthetic binary data, not a PNG or PDF. SHA-256 equality checks byte preservation; it does not establish that a file is safe to open. Results can depend on browser support.

Base64 → Text · Text → Base64

Restore a sample PNG from Base64

  1. Download the 8 × 8 checkerboard PNG. To make your own Base64 text file, add the PNG to the file encoder, convert it and download the result. The example text file below contains the same encoded data. Download the original PNG · Open the file encoder
  2. Add sample-grid.png.base64.txt to the file decoder, convert it and download the restored PNG. The decoder restores the original name, sample-grid.png. Download the Base64 text file · Open the file decoder
  3. Open the newly downloaded PNG and check that it shows the same 8 × 8 checkerboard as the original. For a byte-for-byte check, calculate the SHA-256 of both files and compare it with the digest below.
    770b5f0399029e2b88b5421d1ac2a7ef375d8dcce3c97bc956200367d750d0dc

More online tools

Convert images, test your keyboard, and use other handy tools in your browser.

Explore Altomono tools