Ready
Data URI Generator
Convert text or files into data URIs. Choose a MIME type or drop a file, then copy the generated URI.
Payload bytes: 13 BPayload length: 20 charsData URI length: 43 charsEstimated HTML size impact: 43 B
Tip: For JSON, use application/json; for text, use text/plain.
Data URI
Generated data URI will appear here.
How to use
- Enter text (or drop a small file) and set the MIME type; choose base64 if needed.
- Generate the data URI, then copy it, copy decoded text, or download the URI.
- Use strip-prefix to view just the payload (no `data:` prefix).
FAQ & privacy
Does this run locally? Yes. Everything happens in your browser.
What can I encode? Text or small files up to 5 MB; provide a MIME type for accuracy.
Can I copy or download? Yes. Copy the data URI, copy decoded text, or download the URI as a text file.
Inspector
MIME type
n/a
Charset
n/a
Base64
No
Payload length
0
Decoded bytes (est.)
0
Preview
Generate a supported data URI to see a preview.
Developer snippets
Quick-copy snippets for common usage patterns.
Generate a data URI to enable snippets.
History & compare
Generate or upload to build a history.
Payload diff
Pick two history entries to compare.