HTML Encode

Convert <, >, & and quotes into &lt;, &gt;, &amp; and friends before the text goes into a page or a CMS field.

Loading this tool…

Nothing you enter here is sent anywhere. There is no file and no request to our server - the work is done in your browser and disappears when you close the page.

How It Works

  1. Paste — Type or paste your text into the box above.
  2. Configure — Choose the transformation you want.
  3. Run — Press the action button; the counters update as you type.
  4. Take it — Copy the result or download it as a file.

Frequently Asked Questions

Which characters get encoded?
The markup-significant set — & < > " ' — plus optionally any non-ASCII character as a numeric reference. That is enough to paste code into an article without the browser executing it.