Base64 Reader: View Text or Bytes – Free

Paste a Base64 value when you do not know what is inside. This Base64 reader shows UTF-8 text when the bytes are text, and a file type, hex dump and download when they are not.

How to use the Base64 reader tool

  1. Paste the value into the Base64 or Base64 data URL box, or select Example to load a short text sample.
  2. Select Convert to decode the value.
  3. Read the Result box. Text appears as it is; binary data shows its size, detected type and a hex dump.
  4. For images, audio and video, check the preview under the Result box.
  5. Select Download to save the decoded bytes, or Copy to copy what the Result box shows.

How the Base64 reader decides what to show

The reader decodes the value, then asks two questions. First, do the bytes start with a known file signature? Second, are the bytes valid UTF-8 from start to finish? If they are, the Result box shows the text. If not, it shows a summary line with the byte count and media type, then the first 128 bytes in hex.

A Download link appears in both cases and always contains every decoded byte. Its name follows the detected format, such as decoded.png or decoded.pdf, and falls back to decoded.bin when no signature matches, which includes ordinary text.

Three inputs, three kinds of result

The first value is text, so it is printed. The second is four arbitrary bytes that are not valid UTF-8, so the reader falls back to hex. The third begins with the JPEG signature and is labeled as an image.

SGVsbG8sIHdvcmxkIQ==
  Hello, world!

3q2+7w==
  4 bytes · application/octet-stream
  Hex: de ad be ef

/9j/4AAQSkZJRg==
  10 bytes · image/jpeg
  Hex: ff d8 ff e0 00 10 4a 46 49 46

File types the reader recognizes

Detection uses the leading bytes only. Anything not listed is reported as application/octet-stream.

  • Images: PNG, JPEG, GIF and WebP, each with an inline preview.
  • Audio: MP3, WAV and Ogg, with a player.
  • Video: MP4 and WebM, with a player.
  • Documents and archives: PDF and ZIP. Office files such as DOCX and XLSX are ZIP containers and are reported as application/zip.
  • Not recognized: gzip, BMP, SVG and other formats. Text formats such as JSON, XML and CSV are simply shown as text.

Limits and odd cases

The hex dump stops at 128 bytes. For the complete dump, use Base64 to Hex, or download the file and open it in a hex editor.

Valid UTF-8 is not always readable. The value AAECAw== decodes to four control bytes that pass the UTF-8 check, so the Result box shows invisible characters. MP3 detection looks for an ID3 tag or a frame sync pattern, which means unrelated binary data starting with the byte ff can occasionally be labeled audio/mpeg.

Frequently asked questions

How can I tell what a Base64 string contains?

Paste it here and select Convert. Readable output means the data is text. Otherwise the first result line names the media type found from the file signature, and the hex dump shows the opening bytes for manual inspection.

Why do I see hex instead of text?

At least one byte sequence is not valid UTF-8, so the data is binary or is text in a legacy character set such as Latin-1. The reader shows hex in that case instead of printing garbled characters.

Why is the downloaded file called decoded.bin?

No known signature matched the first bytes. That happens for plain text, JSON, gzip data and many other formats. The content is complete; rename the file with the extension you know to be correct.

Can it read Base64URL and data URLs?

Yes. Strings with - and _ are decoded with the URL-safe alphabet, padding is optional, and a data URL prefix ending in base64, is removed before decoding. Line breaks inside the value are ignored.

How is this different from Base64 to Text?

Base64 to Text stops with an error when the bytes are not UTF-8. The reader accepts any content, identifies common file types, previews media and lets you download the raw bytes.

Related tools