Image Base64 Encode/Decode
画像とBase64を双方向に変換します。Base64→画像でデコード・ダウンロード、画像→Base64でエンコード・コピーができます。
Base64 string
Enter a Base64 string and run decode & download.
How to use
About this tool
Converts between images and Base64 strings: decode/download from Base64, encode/copy from image. Supports PNG, JPEG, GIF, WebP.
How to use
Choose direction, paste Base64 or select an image file. Copy or download the result.
Use cases
• Embedding images as Data URLs • Image in API payload • Saving images received as Base64 • E2E test image fixtures
Privacy and data
Conversion is in-browser; images and Base64 are never sent to a server.
FAQ
- Q: What image formats are supported?
- A: PNG, JPEG, GIF, and WebP are supported for both encoding and decoding.
- Q: What is an image Data URL?
- A: A Data URL is a URI that embeds file data directly in the URL string as Base64. For example: data:image/png;base64,iVBORw0KGgo... This allows images to be embedded directly in HTML, CSS, or JSON without a separate file request.
- Q: When should I use Base64 images instead of file URLs?
- A: Base64 is useful for small images in HTML emails (which block external URLs), CSS sprites, API payloads, and test fixtures. For larger images on websites, file URLs are better as they allow browser caching.
- Q: Is my image sent to any server?
- A: No. All conversion is done entirely in your browser. Your image is never uploaded to any server.
