← Back to Home

HTML Entity Encoder / Decoder

Encode text to HTML entities or decode HTML entities to text

How to use

  1. Choose Encode to convert raw text into HTML entities, or Decode to convert entities back to text.
  2. Paste your content into the input box; results show instantly below.
  3. Copy the output to safely embed text in HTML or to read encoded snippets.
  4. Switch modes to go the other direction without leaving the page.

Examples

Encode <script>

Encode mode converts <script> → &lt;script&gt; to avoid injection.

Decode entities

Decode mode converts &amp;copy; → © for readable symbols.

Attributes

Encode quotes inside attributes: title="5 > 3" → title=&quot;5 &gt; 3&quot;.

FAQs

Do you store my text?

No. Encoding/decoding runs entirely in your browser.

What about XSS?

Use Encode to neutralize HTML before rendering untrusted input.

Which entities are used?

We rely on the browser to produce standard HTML entity conversions.

Related tools