PDF Mikata

How to Turn Base64 Back into a File

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • Choose
  • Paste
  • Save

An API result or an email contains a long string of letters and digits (Base64) that seems to be an image or PDF. "Base64 → file" in Convert Files and Base64 can turn it back into the original file.

Steps

  1. For "Direction", choose "Base64 → file".
  2. Paste the string into "Base64 text".
  3. Enter the "File name to save", with an extension (for example image.png, document.pdf).
  4. Press "Save as file" to save.
  5. Open the saved file and check it.
If "Could not read as Base64. Check the characters." appears, characters are missing or extra ones are mixed in.

Deciding the extension

The Base64 text alone doesn't tell the original file type. Judge from clues like these.

For data URLs

A string with a leading part like "data:image/png;base64," can be pasted as it is. Or paste only the characters after the comma, excluding the leading part.

Checking after saving

Good for

Example

An API response contained a long Base64 string. Pasted it into "Base64 → file", named the file "result.pdf" and saved. It opened as a PDF.

Common stumbling blocks

Frequently asked questions

Can long strings be pasted?

Yes. But very long ones take time.

Summary

Paste and save with a file name that has an extension. Judge the type from the first characters or documentation.

Use "Convert Files and Base64" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides