How to Use
- Choose File โ Base64 and drop/select your files.
- Copy the Base64 output or the CSS snippet.
- Switch to Base64 โ File, paste the string, and download the restored file.
Core Features
- Encode files into Base64 Data URLs with drag-and-drop.
- Decode Base64 strings back into downloadable files.
- Support modern formats like WebP for web performance workflows.
- Process multiple files in bulk and copy outputs per item.
- Generate ready-to-paste CSS background snippets instantly.
- Protect privacy with local, offline processingโno uploads.
Related Tools
Decode Base64 or Data URI images in your browser, preview instantly, and download as the original file, PNG, JPG, or WebP.
Free online Image to Base64 converter. Encode PNG, JPG, SVG, WebP, or GIF images into Data URIs for CSS backgrounds and HTML img tags locally, with no uploads.
Secure JSON formatter: format, validate, and fix JSON locally. Beautify/minify, highlight errors, generate TypeScript or Zod, convert to XMLโprivate. Try now.
Free JSONPath tester and evaluator for API JSON. Extract matching nodes in real time, inspect paths, and copy JSON results while parsing stays local in your browser.
Convert JSON objects or arrays to CSV locally in your browser. Flatten fields, preview the result, then copy or download CSV without uploading data.
Convert CSV text or files to JSON arrays locally in your browser. Supports headers, comma/semicolon/tab delimiters, drag-and-drop files, copy, and download with no uploads.
Compare two JSON documents locally in your browser. Sort object keys for a semantic diff, ignore key-order noise, and mark added, removed, and modified fields without uploads.
Minify JSON into one line, remove indentation and line breaks, and compare original size, minified size, saved bytes, and saved percentage.
Calculation Logic
- Data URLs follow
data:[<mediatype>][;base64],<data>. FileReaderreads files asynchronously to keep the UI responsive.- MIME detection ensures correct prefixes and file extensions.
FAQ
- Is it free?
- Yes.
- Do you upload my files or Base64 text?
- No. Everything runs locally in your browser.
- How do I use a Base64 image in CSS background?
- Upload an image and copy the generated
background-image: url('data:...')snippet.
- Upload an image and copy the generated
- Why does Base64 increase file size? (Technical)
- Base64 encodes 3 bytes into 4 characters, which typically adds ~33% overheadโbest for small assets or inline usage.
- Can I convert WebP images to Base64?
- Yes, WebP and other modern formats are supported.