PDFのミカタ

Base64として読み取れないとき

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • 確かめる
  • 直す

「Base64として読み取れませんでした。文字を確かめてください。」と表示されて、ファイルに戻せない。ファイルとBase64を相互変換する の「Base64 → ファイル」で、エラーが出るときの原因と直し方をまとめます。

まず確認すること

  1. 文字が途中で切れていないか:最初から最後まで、全部をコピーしたか。
  2. 余分な文字が混ざっていないか:前後に、説明文や引用符、スペースが入っていないか。
  3. 向きは合っているか:「Base64 → ファイル」を選んでいるか。

手順(直す)

  1. 文字の途中で切れていないか、確かめます。
  2. 余分な文字が混ざっていないか、確かめます。
  3. もう一度、「Base64の文字」に貼り付けます。
  4. 「保存するファイル名」を入れて、「ファイルとして保存」を押します。
Base64で使える文字は、英字の大文字・小文字、数字、「+」「/」、末尾の「=」です。それ以外の文字が混ざっていると、読み取れません。

よくある原因

余分な部分の取り除き方

保存したファイルが開けない

Base64は読み取れたのに、ファイルが開けない場合は、拡張子が違う可能性があります。ファイルの種類に合った、ファイル名(拡張子)で保存し直します。

向いている対処

短い文字列で、試してみる。最初の数行だけ貼り付けて、読み取れるか確かめると、問題の場所が分かります。

例

APIの結果を貼り付けたら、エラーになった。前後に引用符が付いていたため、取り除いて貼り付けたところ、変換できた。

つまずきやすい点

よくある質問

どの文字が悪いのか、教えてくれますか?

このツールは、エラーの場所を表示しません。上のポイントを、順に確認してください。

まとめ

全部コピーしたか、余分な文字がないかを確認。先頭のデータURLの部分や、引用符を取り除いてみましょう。

ファイルとBase64を相互変換するを使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

When the Base64 Cannot Be Read

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

Key points
  • Check
  • Fix

"Could not read as Base64. Check the characters." is shown and you cannot restore the file. Here are causes and fixes for errors in "Base64 → file" of Convert Files and Base64.

What to check first

  1. Is the text cut off?: Did you copy everything from start to end?
  2. Are extra characters mixed in?: Are there explanatory text, quotes or spaces before or after?
  3. Is the direction right?: Have you chosen "Base64 → file"?

Steps (fixing)

  1. Check that the text isn't cut off.
  2. Check that no extra characters are mixed in.
  3. Paste it into "Base64 text" again.
  4. Enter a "File name to save" and press "Save as file".
The characters usable in Base64 are upper and lower case letters, digits, "+" and "/", and "=" at the end. If other characters are mixed in, it can't be read.

Common causes

Removing the extra parts

When the saved file won't open

If the Base64 was read but the file won't open, the extension may be wrong. Save again with a file name (extension) that fits the file type.

A useful approach

Try with a short string. Pasting just the first few lines and seeing whether it reads shows where the problem lies.

Example

Pasting an API result gave an error. Quotes were attached before and after; after removing them and pasting, it converted.

Common stumbling blocks

Frequently asked questions

Does it tell me which character is bad?

This tool doesn't show the error location. Check the points above in order.

Summary

Check that you copied everything and that there are no extra characters. Try removing the leading data URL part and quotes.

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