{ } 2DevKit
Tools / Encoding

HTML Entities Encoder & Decoder

Encode and decode HTML5 named and numeric character references locally, including ampersands, quotes, Unicode, and HTML special characters.

Named mode encodes special HTML characters. Numeric modes also encode non-ASCII characters. Decode accepts HTML5 named and numeric references. This is not a sanitizer for untrusted HTML.

What is HTML Entities Encoder & Decoder?

HTML character references represent characters such as ampersands, less-than signs and quotation marks in markup. Named references like & and numeric references like & can be decoded into characters. Escaping characters for HTML text is not the same as sanitizing arbitrary untrusted HTML, and attributes, JavaScript and URLs require context-specific treatment.

How to use this tool

  1. Paste plain text or HTML character references into the input field.
  2. Choose named HTML5 entities, numeric decimal, or numeric hexadecimal for encoding; decode HTML5 references as needed.
  3. Copy or export the resulting text without uploading it.

Example

Tom & Jerry <tag> → Tom &amp; Jerry &lt;tag&gt;

Related developer tools