ホーム
Tom Utilities

画像を Base64 に変換

エンコードとデコード

PNG、JPEG、GIF、WebP、SVG 画像を HTML や CSS に貼れる Base64 データ URL に変換します。

使い方

Embedding images as data URLs

Choose an image and the tool produces a data URL. Paste it into an img src attribute, a CSS background or a JSON payload.

  1. Select an image file.
  2. Wait for the preview and data URL.
  3. Copy the data URL.

よくある質問

Is my image uploaded?

No, the conversion happens locally in your browser using the FileReader API.

What is the size limit?

There is no hard limit, but large images produce very long strings and should be optimised first.