Skip to content
New Tool

Image to Base64

Encode an image as Base64 to embed it straight into HTML, CSS, JSON or an email template, with no separate file to host. Copy it as a data URI, a plain Base64 string, an <img> tag or a CSS background.

Drop an image here

or

You can also paste an image with Ctrl+V (⌘V on a Mac).

Your images stay on your device. Nothing is uploaded.

How to convert an image to Base64

  1. Choose or drop an image.
  2. Pick the output: data URI, Base64 only, an HTML <img> tag or a CSS background.
  3. Select “Copy to clipboard” and paste it into your code, or download it as a text file.

Private by design

Most online image tools upload your pictures to their servers. This one doesn’t: Image to Base64 runs entirely in your browser, so family photos, IDs, screenshots and client work never leave your device. It’s free, with no watermark and no limit on how many images you process, and you don’t need an account.

Questions

When should I use Base64 images?

For small images like icons, logos and email signatures, where avoiding a separate file matters. For large photos it's usually worse: the text is a third bigger than the file and can't be cached on its own.

Is the image re-compressed?

No. The file's exact bytes are encoded, so the image is identical.

Why is the Base64 bigger than my image?

Base64 writes every 3 bytes as 4 text characters, so the text is about 33% larger than the file. Compress the image first to keep it small.

Are my images uploaded?

No. Every tool runs in your web browser, so your images are read, changed and saved on your own device and never sent to LabAnvil or anyone else. Once the page has loaded, the tools even work offline.

Is it free? Do I need an account?

Free, with no watermark, no daily limit, no account and no cap on file size beyond what your device's memory can handle.

Part of Image Tools

12 free image tools that run in your browser: convert HEIC, WebP and PNG, compress, resize, crop and remove photo metadata without uploading anything.

About Image Tools

A little guidance

All guides
See all

Markdown Tools

Tool · New

18 free Markdown tools that run in your browser: an editor, slides, a README generator, Markdown to PDF, Word, Slack and Jira, a linter and more.

Label Maker

Tool · New

Print labels from Excel, Google Sheets or a CSV file: pick an Avery-compatible sheet, skip used labels and download a PDF. Addresses, QR codes and barcodes.

14 free printable planners and trackers: weekly and monthly plans, routines, meals, chores, budgets, workouts and more. Edit and print in your browser.

Search by name, description or tag. Press Enter to see every match.