Data URI Generator
Encode a local raster image or plain text as a data URI. Check its MIME type and byte size, then copy or download the literal text.
- Free
- Works Offline
- No Uploads
How to Generate a Data URI
- Open the HTML, review Security Check, then select Continue.
- Choose a local raster image or UTF-8 text file, or paste plain text. Open Sample uses a small PNG.
- Confirm the MIME type and encoding, then check the resulting URI size.
- Copy the full URI or use Download Text to save data-uri.txt.
Data URI Generator Features
- Open a supported local image or text file, or paste plain UTF-8 text.
- Choose the MIME type or detect the file type. Use Base64 for images or either encoding for text.
- Check the MIME and size, then copy or download the complete URI as text.
Formats and Compatibility
| Input | UTF-8 plain text or one local .txt, PNG, JPEG, GIF or WebP file up to 1 MiB. Raster images are checked against their file signature and decoded offscreen for validation. |
|---|---|
| Output | Literal data URI text, with exact input and URI byte counts. The preview shows up to 4,096 characters. Copy and Download Text provide the complete URI. |
| Browser | A modern browser with local file support. |
| Scope | Up to 1 MiB of plain UTF-8 text or PNG, JPEG, GIF or WebP. Raster files are limited to 16 million pixels and 16,384 pixels per side. |
| Operating Systems |
Local Processing Without Uploads
Use the data URI generator without uploading files. Input processing runs on your device.
Select Open Sample to see the workflow with the included example.
Supported MIME Types and Encodings
Generate text/plain URIs with Base64 or percent encoding. PNG, JPEG, GIF and WebP use Base64. SVG, HTML and other active MIME types are outside the supported format list.
Review and Save a Literal URI
The result is plain text. Check its MIME type, encoding and size before copying the URI or saving data-uri.txt.
Frequently Asked Questions
Can I use this data URI generator offline?
Yes. Extract the Tool ZIP and open DataURIGenerator.html.
How does the local data URI generator handle pasted text?
It encodes UTF-8 as text/plain. Text with non-ASCII bytes adds a UTF-8 charset indicator.
Is this a free data URI generator?
Yes. It is available under the LocalStudio Free Software License.
Can I use the data URI generator without uploading files?
Yes. The browser reads the file or pasted text locally.
Where is the data URI generator download?
Choose Download Tool ZIP, extract it, and open the included HTML.
Can I use the data URI generator in browser mode?
Yes. Use this data URI generator browser tool with a supported local file or pasted text.
Can I open the data URI generator online?
Yes. The hosted data URI generator tool runs locally in your browser.
Can I preview the generated URI as an image or page?
The preview displays literal URI text. Use Copy URI or Download Text for the complete value.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.