Guides

Detect an invalid character in Base64 text

Follow these steps using a local file and keep the original.

Detect an invalid character in Base64 text
Actual local tool workspace with a synthetic sample.

Prepare the example

Create disposable test input with the exact content below (UTF-8 text unless marked hex). For duplicate filenames, save the two files in separate folders.

invalid.b64
aGVs!G8=

Create a text file containing aGVs!G8=.

Run the workflow

  1. Open the related tool below and load the prepared file(s).
  2. The decoder must reject the invalid symbol rather than silently dropping it.

Verified example result

This example was reproduced in Chrome on 2026-12-04 using FileTypeKit 0.9.0 and synthetic data. The expected result or expected refusal was checked; this does not establish support for every real file.

The downloaded output was checked against the expected properties below.

Observed status: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

Limitations and what to verify

Check transport encoding and remove only known separators; do not guess data.

Open related tool