Turn any image into a base64-encoded string for embedding in code, or paste a base64 string to preview the image it represents.
Drop an image here, or click to browse
Processed on your device. Nothing is uploaded anywhere.
Choose Image → Base64 or Base64 → Image at the top of the tool.
Upload a file, or paste a base64 string into the text box.
Copy the generated code, or preview the decoded image instantly.
Developers use base64 to embed small images directly inside HTML, CSS or JSON, without needing a separate image file or server request.
Very large images produce very long base64 strings, which can slow down the page they’re embedded in. It works best for icons, logos and small graphics.
No. Encoding and decoding both happen locally in your browser.
Everything runs locally in your browser — no sign-up, ever.
Increase your image resolution 2× or 4× right in your browser, with automatic ed…
Try it →Compress JPG and PNG files with a live quality preview, so you can see exactly h…
Try it →Straighten a sideways photo or mirror an image with one click — rotate by 90° in…
Try it →Click anywhere on a photo to instantly get its exact hex and RGB color code — pe…
Try it →Strip GPS location, camera model and timestamp data from your images in one clic…
Try it →Fit any photo to the exact dimensions social platforms expect, with automatic sm…
Try it →