utills.
日本語

画像をBase64に — そして元に戻す

任意の画像をBase64文字列またはデータURIにエンコードし、そのままコピーできるCSSおよびHTMLスニペットを取得。あるいはBase64を画像にデコード — 無料でブラウザ内で完結。

エンコードする画像をドロップ

ドラッグ&ドロップ、貼り付け、またはファイルを選択

PNG · JPG · WebP · GIF · SVG — お使いのデバイスでエンコード

100%無料コピーまたはダウンロード登録不要 PNG · JPG · WebP · GIF · SVG

よくある質問

このBase64画像ツールは無料ですか?

はい — 完全無料で、透かしなし・登録なしでご利用いただけます。画像のエンコードとデコードは何枚でも行えます。

Base64画像(データURI)とは何ですか?

Base64は、画像ファイルなどのバイナリデータを、プレーンテキスト文字のみで表現する方法です。データURIはそのテキストにdata:image/png;base64,のようなプレフィックスを付加することで、ブラウザが別ファイルをダウンロードすることなく、文字列そのものを画像として扱えるようにします。

画像をBase64に変換するには?

エンコードタブで画像をドロップするか選択します。ツールはBase64生文字列、完全なデータURI、すぐ使えるCSSおよびHTMLスニペットを即座に表示します。「コピー」をタップするか、.txtファイルとして文字列をダウンロードできます。

Base64を画像に戻すには?

デコードタブに切り替え、Base64文字列または完全なdata: URIを貼り付けて「デコード」をクリックします。画像が即座にプレビューされ、元のフォーマットのままダウンロードできます。

Base64文字列が画像ファイルより大きいのはなぜですか?

Base64エンコードはサイズを約33%増加させます。これは2進数3バイトがテキスト4文字になるためです。これは想定内です。インラインデータURIは小さな画像(アイコン、小さなロゴ)に最適で、大きな画像には通常のファイルやURLの方が小さくキャッシュも効きます。

エンコードで画像の品質は変わりますか?

いいえ。Base64は元のバイトを忠実に表現するロスレステキスト表現であり、画像の再圧縮や変更は一切行いません。デコードするとバイト単位で完全に同一のファイルが返されます。

対応している画像フォーマットは?

PNG、JPG、WebP、GIF、BMP、SVG、AVIF、ICOファイルをエンコードできます。デコード時はデータからフォーマットを自動検出し、正しい拡張子でダウンロードされます。

画像はどこで処理されますか?

エンコードとデコードはブラウザ内で行われるため、結果はお使いのデバイス上で生成されます。ツールに関連するデータの取り扱いについては、プライバシーポリシーをご確認ください。

データURIをCSSやHTMLで使えますか?

はい。エンコードタブでは、データURIが記入済みのCSS background-imageルールと<img>タグをすぐに取得できます — コピー&ペーストするだけです。小さな画像をこの方法でインライン化すると、余分なネットワークリクエストを省けます。

スマートフォンでも使えますか?

はい。エンコーダーとデコーダーはスマートフォンやタブレットでも動作します — ボタン、コピー操作、貼り付けボックスはすべてタッチ操作に対応しています。

その他の画像ツール

Find your next tool

37 tools

Compress image Shrink file size while keeping quality. Resize image Change width and height to any size. Crop image Trim images to the exact frame you want. Convert image Switch between JPG, PNG, WebP and more. Remove background Erase the background in one click. Image to PDF Combine images into one PDF document. Rotate & Flip Turn, straighten, and mirror photos. Image to text Pull editable text out of any image. HEIC to JPG Open iPhone HEIC photos as JPG. Watermark Stamp text or logos over your images. Collage Arrange multiple photos into a grid. Favicon Generator Build favicons in every required size. Color Picker Grab hex colors and build palettes. Blur & Pixelate Obscure faces, plates, and private bits. Enhance Auto-fix brightness, contrast, and color. Passport Photo Prepare photos for ID and passport applications. Signature Clean up and extract handwritten signatures. Photo Effects Apply filters and vintage looks. Social Image Size covers for common social platforms. Add text to image Caption images and make memes fast. GIF Maker Turn frames or clips into animated GIFs. Border & Frame Add clean borders and photo frames. Mockup Drop screenshots into device frames. SVG Converter Trace raster images into scalable SVG. EXIF Viewer Inspect camera and GPS metadata. Poster & Print Lay out posters and print-ready sheets. Document Scanner Deskew and clean photographed documents. Image to Base64 Encode images into a data-URI string. Placeholder Make dummy placeholder images on demand. Image generator Make gradients, patterns, and avatars. Compare Images See two images side by side with a slider. QR Code Create and download QR codes. Hide Text in Image Embed a secret message inside a picture. Length converter Meters, feet, inches, miles and more. Weight converter Switch between kilograms, pounds and more. Temperature converter Celsius, Fahrenheit, Kelvin and more. Data storage converter Bits, bytes, megabytes and gigabytes.
Tab to move · Enter to open · Esc to close