HTML Entity Encoder

Encode special characters to HTML entities.

About this tool

When writing HTML or email templates, special characters like <, >, &, and quotes need to be encoded as HTML entities to render correctly. This tool encodes and decodes those entities instantly, without risk of accidentally breaking your markup.

How to use the HTML Entity Encoder

  1. Paste text with special characters into the input area
  2. Click Encode to turn characters into HTML entities
  3. Click Decode to convert entities back to plain text
  4. Copy the result and paste into your code or template

Features

  • Encode all HTML special characters
  • Decode HTML entities back to text
  • Supports named and numeric entities
  • Useful for email templates and HTML injection prevention
  • 100% client-side

Frequently asked questions

Is this HTML encoder free?

Yes. Encode and decode HTML entities online for free without any signup.

What is an HTML entity?

An HTML entity is a text representation of special characters that would otherwise be interpreted as markup (e.g., &lt; for < and &gt; for >).

Does it support numeric entities?

Yes. The tool supports both named entities (e.g., &amp;) and numeric entities (e.g., &#38;).

Is my text sent to a server?

No. All encoding and decoding happens entirely in your browser.