Convert Images to Base64 — and Back Again

Turn any image into a base64-encoded string for embedding in code, or paste a base64 string to preview the image it represents.

No sign-up100% FreeRuns in your browser
Advertisement

Drop an image here, or click to browse

Processed on your device. Nothing is uploaded anywhere.

Advertisement

How it works

1

Pick a mode

Choose Image → Base64 or Base64 → Image at the top of the tool.

2

Upload or paste

Upload a file, or paste a base64 string into the text box.

3

Copy or preview

Copy the generated code, or preview the decoded image instantly.

Frequently asked questions

What is base64 encoding used for?

Developers use base64 to embed small images directly inside HTML, CSS or JSON, without needing a separate image file or server request.

Is there a file size limit?

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.

Does this tool store my images?

No. Encoding and decoding both happen locally in your browser.

More free tools

Everything runs locally in your browser — no sign-up, ever.