PDF Mikata

如何把 Base64 還原成檔案

釋出日期:2026 年 10 月 19 日|最後更新:2026 年 10 月 19 日|關於(日文)

要點
  • 選擇
  • 貼上
  • 儲存

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 日元)贈送禮物(亞馬遜心願單)

此工具的更多教程

檢視全部教程