PDFのミカタ

Base64とは?

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

この記事のポイント
  • 知る
  • 使う

開発者向けの資料やAPIで、よく見かける「Base64」。何のためのものか、ファイルとBase64を相互変換する を使う前に、基本を知っておきましょう。

Base64とは

画像やPDFなどのデータ(バイナリ)を、英数字と少しの記号だけで表した文字列にする方式です。使う文字は、英字の大文字・小文字、数字、そして「+」「/」と、末尾の「=」です。

なぜ必要か

メールの本文や、一部の通信の仕組みは、文字しか扱えません。バイナリのデータをそのまま入れると、壊れてしまいます。Base64で文字にすれば、文字だけの場所にも、安全に入れられます。

手順(試してみる)

  1. 「向きを選ぶ」で、「ファイル → Base64」を選びます。
  2. 小さな画像かテキストを、「ファイルを1つ選ぶ」で選びます。
  3. 「変換後のBase64」に出る、文字列を見てみましょう。
変換後の文字数は、元のデータの約1.3倍になります。

Base64の特徴

よくある使われ方

「暗号化」との違い

Base64は、データを別の形で表しているだけで、鍵がなくても、誰でも元に戻せます。パスワードや秘密の情報を、Base64にしても、守られません。

見分け方

例

APIの説明に、「画像はBase64で送る」とあった。このツールで、画像をBase64にして、確かめた。

つまずきやすい点

よくある質問

Base64にすると、容量は小さくなりますか?

いいえ。約1.3倍に増えます。

まとめ

Base64は、データを文字にする方式。暗号ではなく、容量が増えることを覚えておきましょう。

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

あわせて使えるツール

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

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

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

解説の一覧を見る

What Is Base64?

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

Key points
  • Learn
  • Use

"Base64" is often seen in developer documentation and APIs. Before using Convert Files and Base64, here are the basics of what it is for.

What Base64 is

A method of turning data (binary) such as images and PDFs into a string using only letters, digits and a few symbols. The characters used are upper and lower case letters, digits, "+" and "/", and "=" at the end.

Why it is needed

Email bodies and some communication mechanisms can handle only text. Putting binary data in as it is would corrupt it. Turned into text with Base64, it can be safely put even in text-only places.

Steps (trying it)

  1. For "Direction", choose "File → Base64".
  2. Choose a small image or text with "Choose one file".
  3. Look at the string that appears under "Base64 after conversion".
The character count after conversion is about 1.3 times the original data.

Characteristics of Base64

Common uses

Difference from "encryption"

Base64 only expresses data in another form, and anyone can restore it without a key. Putting a password or secret information into Base64 does not protect it.

How to recognise it

Example

An API description said "send images in Base64". Used this tool to turn an image into Base64 and see.

Common stumbling blocks

Frequently asked questions

Does Base64 make the size smaller?

No. It grows to about 1.3 times.

Summary

Base64 is a method of turning data into text. Remember it is not a cipher and increases size.

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