URL / Base64 / HTML

Pick an image file. Output is a Base64 data URI you can paste into HTML/CSS or decode elsewhere.

About this tool

Encode and decode URL, Base64 and HTML strings; optionally turn an image file into a Data URI.

How to use

  • Text encodings: pick a mode (URL / Base64 / HTML), choose encode or decode; output updates as you type.
  • Image / Data URI: choose an image, optional MIME override and max side in pixels; copy the data:image/... string.

Examples

  • URL encode hello world!hello%20world%21
  • Base64 encode fooZm9v
  • HTML encode <b>x</b>&lt;b&gt;x&lt;/b&gt;