Developer Tools

Text Data URI Generator

Create a percent-encoded or Base64 data URI from text content.

Free to use No account needed Quick result

Tool workspace

Private by design

Your result

Your result will appear here…

About the Text Data URI Generator

The Data URI Generator combines an explicit media type with locally encoded text bytes. It is convenient for tiny fixtures and self-contained examples, though large inline assets increase document size.

How to use the Text Data URI Generator

  1. Enter the content and an accurate MIME type.
  2. Choose percent encoding or Base64.
  3. Generate and test the URI in the intended context.

Practical tips

  • Use data URIs only for small resources.
  • Never embed confidential content in a URI that may enter logs or page source.
Helpful answers

Text Data URI Generator FAQs