変換できるファイルの大きさ
- 確かめる
- 分ける
ファイルとBase64を相互変換する で変換できるファイルの大きさには、上限があります。「このファイルは大きすぎて変換できませんでした(20MBまで)。」と表示される場合の、考え方と対処をまとめます。
上限
- 変換できるファイルは、20MBまでです。
- Base64にすると、文字数は元の約1.3倍になります。20MBのファイルなら、約26MB分の文字になります。
手順
- 「向きを選ぶ」で、「ファイル → Base64」を選びます。
- 「ファイルを1つ選ぶ」で、ファイルを選びます。
- 大きすぎる場合は、メッセージが表示されます。
大きなファイルを小さくする方法
- 画像:画像を圧縮するツールや、サイズを変えるツールを使う。
- PDF:PDFを圧縮するツールを使う。
- ZIP:複数のファイルは、ZIPにまとめる(ただし、あまり小さくならない場合も)。
- 動画・音声:専用のソフトで、サイズを小さくする。
実際に使うときの大きさの目安
Base64は、小さなデータ向きです。
- アイコン:数KB
- ロゴ:数十KB
- 小さな写真:数百KB
大きなデータは、Base64にすると、扱いにくくなります。
なぜ大きいと扱いにくいか
- 文字列が長くなり、コピーや貼り付けに時間がかかる
- テキストエディタや、メールが、重くなる
- 一部のソフトで、長さの上限に引っかかる
- 通信の量が増える
大きなファイルを送りたい場合
Base64で文字にするより、ZIPやクラウドの共有など、別の方法をおすすめします。
Base64から戻すとき
「Base64 → ファイル」で戻すときも、文字が非常に長いと、時間がかかります。
例
15MBの画像を変換しようとしたら、貼り付けに時間がかかった。画像を圧縮して、500KBにしてから変換したところ、扱いやすくなった。
つまずきやすい点
- 20MB以下なのに、変換できない:端末のメモリが足りない。
- 変換後が長すぎて、貼り付けられない:貼り付け先に、文字数の上限がある。
よくある質問
20MBを超えるファイルを変換できますか?
できません。先に小さくしてください。
まとめ
上限は20MB、文字数は約1.3倍。大きいファイルは、先に小さくしましょう。
ファイルとBase64を相互変換するを使う(無料)あわせて使えるツール
- ファイルのハッシュ値を調べる(SHA-256):ファイルのハッシュ値を調べて、照合します。
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- ファイルをZIPにまとめる:複数のファイルを、1つのZIPにまとめます。
同じツールの、ほかの解説
How Large a File Can Be Converted
- Check
- Split
There is an upper limit on the file size Convert Files and Base64 can convert. When "This file is too large to convert (up to 20MB)." is shown, here is the thinking and what to do.
The limit
- Files up to 20MB can be converted.
- Base64 makes the character count about 1.3 times the original. A 20MB file becomes about 26MB worth of characters.
Steps
- For "Direction", choose "File → Base64".
- Choose the file with "Choose one file".
- If it is too large, a message is shown.
How to make large files smaller
- Images: use the image compression or resize tools.
- PDFs: use the PDF compression tool.
- ZIP: pack several files into a ZIP (though it may not shrink much).
- Video and audio: shrink with dedicated software.
A size guide for actual use
Base64 suits small data.
- Icons: a few KB
- Logos: tens of KB
- Small photos: hundreds of KB
Large data becomes hard to handle as Base64.
Why large is hard to handle
- The string gets long, and copying and pasting take time
- Text editors and email become heavy
- Some software hits a length limit
- The amount of communication increases
If you want to send a large file
Rather than turning it into text with Base64, other methods such as ZIPs or cloud sharing are recommended.
When converting back from Base64
Even when restoring with "Base64 → file", very long text takes time.
Example
Trying to convert a 15MB image made pasting slow. After compressing the image to 500KB and converting, it became easy to handle.
Common stumbling blocks
- Can't convert though under 20MB: the device's memory is short.
- The result is too long to paste: the paste destination has a character limit.
Frequently asked questions
Can files over 20MB be converted?
No. Make them smaller first.
Summary
The limit is 20MB and the character count grows about 1.3 times. Shrink large files first.
Use "Convert Files and Base64" (free)Tools that go well with this
- Check a File's Hash (SHA-256): Calculate a file's hash and compare it.
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Make a ZIP File: Pack several files into one ZIP.