Base64 only
Best when no prefix is needed, such as when sending to an API or as a JSON value.
このツールは日本語でも使えます。
日本語で開くLoad an image in any way you like
Check the loaded image and its details
Switch the format to suit how you use it
Images from a file, drag and drop, or the clipboard are processed only in your browser.
This tool converts an image file into a Base64 string that you can embed directly in HTML, CSS, JSON and more. Nothing to install. Load an image in any of four ways: choose a file, drag and drop, enter an image URL, or paste from the clipboard.
Choose a file, drag and drop it, enter a URL, or paste it.
Pick a plain Base64 string, or a data URI that includes the MIME type.
Copy the result in one click, or save it as a text file.
Best when no prefix is needed, such as when sending to an API or as a JSON value.
In the form data:image/png;base64,..., ready to use as is in HTML or CSS.
Copy, save as .txt, and see the character count, so the next step is quick.
In general, a Base64 string is about 33% larger than the original binary data. It works best for embedding small images such as icons.
Any format your browser can load, such as PNG, JPEG, GIF, WebP, SVG and AVIF.