Data URI Converter
Turn text into a data: URI, as Base64 or plain, or decode a data URI to read its type and content.
Processed on your device. Files are not uploaded
How to make or read a data URI
Paste your text or data URI
Paste or type it into the box, or press Try an example.
Choose the direction
Text to a data URI, or a data URI back to text.
Copy or download
Use the data URI in HTML or CSS.
Worked example
This is what Data URI Converter gives for its own sample values. Open the tool above and change anything to try your own.
Text or data URI
Hello, Sarva!
- Direction
- Text to data URI
- Media type
- text/plain
- Encode as Base64
- Yes
Data URI
data:text/plain;base64,SGVsbG8sIFNhcnZhIQ==
About Data URI Converter
A data URI holds a small file inside a link, such as data:text/plain;base64,SGVsbG8=. Make one from text, with a media type you choose, or decode one to see its type, encoding and content.
FAQs
When are data URIs useful?
To embed small images, fonts or snippets in CSS, HTML or JSON without a separate file.
Is Base64 required?
No. Plain percent-encoded text also works and is often shorter for text.
What about images?
Use Image to Base64.