Data URI Generator
Turn a file into a data: URI you can paste into CSS, HTML or JavaScript — or go the other way and decode a data URI back into a downloadable file. Everything happens in your browser; nothing is uploaded.
1. Choose a file
Drag & drop a file here, or use the button below
Any file type up to 10.00 MB — binary safe, nothing is uploaded
About this tool
Data URI Generator encodes any file into a data: URI — building the base64 in chunks so large binaries never blow the call stack — and decodes a pasted data URI back into a downloadable file, accepting both base64 and percent-encoded payloads. It shows the real size cost, previews images, SVG and text, and produces ready-to-paste CSS, HTML, fetch and inline-SVG snippets. Everything runs entirely in your browser: files never leave your machine. Encoding is capped at 10.00 MB per file and 14.00 MB of pasted URI text, and inline previews stop at 5,000 characters, with a red warning once a URI passes 8.0 KB (and a stronger one past 32.0 KB).
- 100% free — no account needed
- Runs in your browser
- Nothing is uploaded
Frequently asked questions
Is Data URI Generator really free?
Yes. Data URI Generator is completely free on PureBrowser — every feature, with no account, no trial, and no credit card.
Does Data URI Generator upload my data?
No. Data URI Generator runs entirely inside your browser, so anything you type, paste, or open stays on your own device.
Do I need to sign up or install anything?
Neither. There is no account and nothing to download — open the page and Data URI Generator is ready to use on desktop or mobile.
Does Data URI Generator work offline?
Once the page has loaded, yes. All of the processing happens locally in your browser, so it keeps working without a connection.
More developer tools
Folder Structure Generator
Build folder structure diagrams, ASCII directory trees, and file tree visualizations for READMEs and docs.
.gitignore Generator
Generate merged .gitignore rules for your stack with one click.
JSON to TypeScript Interface
Convert JSON into TypeScript interfaces with inferred nested types.
Text to Slug Converter
Convert titles and phrases into clean SEO-friendly URL slugs.
UTM Builder
Build campaign URLs with UTM parameters for analytics tracking.
JSON Formatter & Validator
Validate, format, and minify JSON directly in your browser.