Savvy Goose
Character Counter Text & Writing
Case Converter Text & Writing
Diff Viewer Text & Writing
Markdown Converter Text & Writing
Percentage Calculator Numbers & Time
Unit Converter Numbers & Time
Timestamp Converter Numbers & Time
Time Between Dates Numbers & Time
Barcode Generator Generators
QR Code Generator Generators
Base64 Encoder Data & Encoding
Image to Base64 Data & Encoding
URL Encoder Data & Encoding
JWT Decoder Data & Encoding
Hash Generator Data & Encoding
Color Converter Data & Encoding
JSON Formatter Data & Encoding
Format Converter Data & Encoding
Regex Tester Data & Encoding
Browser Info Data & Encoding
Password Generator Generators
Passphrase Generator Generators
UUID Generator Generators
Favicon Generator Generators
Image Resizer Generators
Slug Generator Generators
Lorem Ipsum Generators
Mermaid Editor Diagrams
Cron Expression Generator Developer Tools
GitHub Dependency Starrer Developer Tools
No results found
Buy me a coffee
Savvy Goose

Image to Base64

Turn an image into a Base64 data URI, all in your browser.

How to use the Image to Base64

  1. Drop in or pick an image (PNG, JPEG, GIF, SVG, or WebP).
  2. The Base64 data URI is generated instantly, with the size shown.
  3. Copy the raw data URI, a ready-made img tag, or a CSS background rule.

Frequently asked questions

What is a Base64 data URI?
A data URI embeds a file directly in text as data:[type];base64,[data]. In HTML or CSS it lets a small image load without a separate network request.
When should I inline an image as Base64?
It works best for small, frequently used assets like icons and logos, where saving a request matters. Base64 adds about a third to the byte size, so large photos are better left as normal files.
Which image formats are supported?
PNG, JPEG, GIF, SVG, and WebP. The data URI keeps the original format; it does not re-encode the image.
Is my image uploaded?
No. The file is read and encoded locally with the browser FileReader, so it never leaves your device.

Made for free with