Online Image to Base64 Converter
A handy image encoding tool for frontend devs and email signatures: drag, drop, or paste to convert images to Base64 with Data URI, CSS, HTML img, and JSON outputs, plus optional compression.
An img64-inspired online image to Base64 converter with drag, drop, paste, and click upload. Fully browser-local with multiple output formats.
Docs
This tool is inspired by img64 and lets you convert images to Base64 encoding directly in your browser. Upload via drag & drop, paste from clipboard, or click to select a file. Output formats include Data URI, CSS background, HTML img tag, and JSON. Optional image compression allows you to control output quality and dimensions. All processing is done locally in your browser — no file ever leaves your device.
Core Features
- Drag & drop, Ctrl+V paste, or click to upload images
- Output formats: Data URI, CSS background-image, HTML img tag, JSON
- Optional compression with quality, max width, and max height controls
- File info display: name, size, type, and dimensions
- One-click copy for the current format
- Fully browser-local processing for privacy
How To Use
- Drag an image into the dashed zone, click to browse, or use Ctrl+V to paste from clipboard.
- Once loaded, file info (name, size, type, dimensions) appears on the right.
- Enable compression if needed and adjust quality, max width, and max height.
- Switch between Data URI / CSS / HTML / JSON tabs to see different output formats.
- Click the Copy button to save the encoded content to your clipboard.
Typical Scenarios
- Embedding icons or avatars in email signatures
- Using Data URIs in web pages to reduce HTTP requests
- Inline CSS background-image references
- Transmitting image data as Base64 in API payloads
- Rapid prototyping and debugging with inline images
Notes
- Supports PNG, JPEG, GIF, WebP, SVG, BMP, ICO, and other common formats.
- Recommended file size under 20MB; very large files may impact browser performance.
- Compression is lossy — disable it for color-accurate design assets.
- All processing runs locally in your browser; files are never uploaded.
Last verified: 2026-05-10 Source: nutshot2000/img64
English
中文
Français
Español
日本語