embed images in code
Encode images as Base64 online
Base64 encoding represents binary image data as ASCII text. Developers use it for inline images in HTML, CSS, email templates, and API payloads.
OneImageTool reads your file in the browser and outputs a Data URL (`data:image/...;base64,...`) or the raw Base64 payload — no server upload.
three steps
How to convert an image to Base64
Upload
Drop or select a JPG, PNG, or WebP image.
Copy
Copy the full Data URL or Base64-only string from the output area.
Paste
Use in your HTML `<img src="...">`, CSS `url(...)`, or application code.