HTML Encoder / Decoder

Convert special characters like < > and & to HTML entities, or turn entities back into plain characters.

How to use HTML Encoder / Decoder

  1. Paste your text or HTML into the box.
  2. Choose "Text → HTML Entities" to escape characters like < > & " ', or "HTML Entities → Text" to decode them back.
  3. Copy the converted result.

Frequently asked questions

Which characters does the encoder actually convert?

Just five — & < > " ' become &amp; &lt; &gt; &quot; &#039;. Decoding reverses those five and also handles generic numeric entities like &#233;, but it doesn't recognize named entities such as &nbsp; or &copy;, or hex-form entities like &#x27;.

Is this the same as URL encoding?

No — this escapes characters so they display literally instead of being parsed as markup, which is a different job from URL encoding's percent-escaping of characters in a link. Use the URL Encoder/Decoder tool if you need %20-style encoding instead.

Does any of this get sent to a server?

No — both encoding and decoding are plain string replacements that run entirely in your browser as you type.

Community

Loading...