Base64 Data URI Encoder
Encode images, audio, and SVG graphics into fast Base64 data URIs completely inside your browser.
Drag & drop any image or file to encode to Base64
PNG, JPG, SVG, WebP, ICO, fonts, audio (100% in-browser)
How to Generate Base64 Data URIs in 3 Steps
Convert files to Data URIs or decode strings back to files:
Upload File or Paste String
Drop any image, SVG, or media file, or paste an existing Base64 encoded string.
Select Output Format
Choose raw Base64 string, CSS background-image url(...), HTML <img> src, or download decoded binary.
Copy Embed Code
Copy the ready-to-use Data URI string directly into your CSS stylesheet or HTML markup.
Using Data URIs for Performance & Single-File Bundles
Eliminating HTTP Image Requests
Inlining small icons and graphics directly into HTML/CSS Data URIs removes round-trip HTTP network latency, improving First Contentful Paint (FCP).
MIME Type Auto-Detection
Automatically tags binary Data URIs with valid MIME headers (image/png, image/svg+xml, image/webp) for standard browser rendering.
Frequently Asked Questions About This Tool
Base64 inlining is best for small icons (under 10KB), SVG graphics, and email templates where external asset hosting is unavailable.
Related tools
Additional creator utilities
Quick, browser-based tools for clean dialogue, formatting, and media prep.
Caption Health & CPS Auditor
Audit characters-per-second & line lengths against Netflix standards
Strip Timestamps & Dialogue
Extract pure text without timecode arrows (-->) for blog posts
Podcast Show Notes & Chapters
Generate YouTube descriptions & Spotify timestamp chapters
Speech Cadence & Duration
Calculate video reading time & words-per-minute pacing
Deduplicate & Clean Lines
Remove duplicate lines, trim whitespace, and sort lists
Case Converter
camelCase, snake_case, Title Case, kebab-case, UPPERCASE
JSON Formatter & Validator
Beautify nested JSON, minify to single line, and validate syntax
SVG Studio & 4K PNG Scaler
Render high-resolution PNGs from vector SVG and minify code
Base64 Data URI Encoder
Encode images and files into Base64 data URIs in your browser