All tools

Data URI Encoder / Decoder

Convert files to data: URLs and back.

File → data URI

Data URI → file

About

Drop a file (image, font, anything small) and get a data: URI you can paste directly into HTML or CSS. Or paste a data URI to decode it back to a file. Useful for embedding tiny assets without separate HTTP requests.

How to use

  1. Drop a file or paste a data URI.
  2. Copy the result.

FAQ

When should I use data URIs?+

For very small images (under a few KB) embedded in CSS, or one-off icons in standalone HTML. Anything bigger and the base64 overhead makes file size worse.