PDF Mikata

Как превратить Base64 обратно в файл

Опубликовано: 19 окт. 2026 | Обновлено: 19 окт. 2026 | О сайте (на японском)

Главное
  • Выбор
  • Вставка
  • Сохранение

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.

Шаги

  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.

Проверка после сохранения

Подходит для

Пример

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.

Итог

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

Использовать «Преобразование файлов и Base64» (бесплатно)

Инструменты, которые хорошо сочетаются с этим

Если это руководство помогло, небольшие чаевые будут очень ценны.

Отправить чаевые (¥300)Отправить подарок (список желаний Amazon)

Другие руководства по этому инструменту

Все руководства