HTML Entity Encoder

Turn characters that break HTML into named or numeric entities. Processing stays local — nothing is uploaded.

Result

Paste text to convert into HTML entities.

How to encode HTML entities

  1. Paste the text that should appear safely in HTML.
  2. Click Encode.
  3. & < > quotes become named entities; other characters use named or numeric forms.
  4. Copy the encoded string. Output is plain text, not rendered HTML.

FAQ

& < > " and ' are always escaped. Printable ASCII otherwise stays as-is. Non-ASCII and control characters become entities.
Common characters prefer named forms (&eacute;, &mdash;, &copy;). Others use decimal numeric entities (&#NNNN;).
No. Encoding runs entirely in your browser.
Entities help when HTML parsers treat <, &, or quotes as syntax. UTF-8 in the document is fine for modern pages, but entities are still common in templates, RSS, and legacy CMS exports.
Printable ASCII outside the reserved set stays literal. Other code points become named entities when known, otherwise numeric &#NNNN; or &#xHH; forms.

Related tools