URL and HTML Encoder

Encode text for a query string, or escape characters so they show up as HTML text. Both directions run on the page.

How to use it

  1. Paste the text, URL, or HTML snippet.
  2. Encode or decode it.
  3. Copy the result into your markup or request.

Useful for

  • Encode a search query
  • Escape < and > for HTML
  • Decode a percent-encoded URL

Related tools

Questions about URL &amp; HTML Encoder

What is the difference between encodeURI and encodeURIComponent? +

This tool uses component-safe encoding so query values and path segments are escaped correctly.