HTML Entity Encoder / Decoder

Encode reserved HTML characters or decode character references into plain text.

Paste or choose an input, select options and process it locally. Review the result before copying or downloading.

Options

Up to 100,000 input code units and 1,000,000 output code units. Decoding uses HTML text character-reference rules, not attribute rules. Output is plain text; this tool does not sanitize a complete HTML document or make unsafe URLs safe.

How to use

What does this tool do?

Encode special text characters as HTML entities or decode character references. The result remains plain text so a decoded tag is never executed in the page.

HTML Entity Encoder / Decoder

Encode special text characters as HTML entities or decode character references. The result remains plain text so a decoded tag is never executed in the page.

Step by step

  1. Paste or choose an input, select options and process it locally. Review the result before copying or downloading.
  2. Encode always handles &, < and >; optionally include quotation marks for quoted attributes. Decoding follows HTML text rules, not the different rules used inside attributes.

Choosing the settings

OptionWhat changes
OptionsEncode always handles &, < and >; optionally include quotation marks for quoted attributes. Decoding follows HTML text rules, not the different rules used inside attributes.
LimitsUp to 100,000 input code units and 1,000,000 output code units. Decoding uses HTML text character-reference rules, not attribute rules. Output is plain text; this tool does not sanitize a complete HTML document or make unsafe URLs safe.

Example and expected result

<p>Tea & coffee</p> becomes &lt;p&gt;Tea &amp; coffee&lt;/p&gt;. Decoding &#65; gives A.

If it is not working

  • Unknown references can remain unchanged. This is not an HTML sanitizer or URL validator; do not insert decoded input into executable markup without separate validation.

Formats and limits

Up to 100,000 input code units and 1,000,000 output code units. Decoding uses HTML text character-reference rules, not attribute rules. Output is plain text; this tool does not sanitize a complete HTML document or make unsafe URLs safe.

FAQ

What does this tool do?

Encode special text characters as HTML entities or decode character references. The result remains plain text so a decoded tag is never executed in the page.

Which setting should I choose?

Encode always handles &, < and >; optionally include quotation marks for quoted attributes. Decoding follows HTML text rules, not the different rules used inside attributes.

What are the limits?

Up to 100,000 input code units and 1,000,000 output code units. Decoding uses HTML text character-reference rules, not attribute rules. Output is plain text; this tool does not sanitize a complete HTML document or make unsafe URLs safe.

Why did processing fail?

Unknown references can remain unchanged. This is not an HTML sanitizer or URL validator; do not insert decoded input into executable markup without separate validation.

Is my input uploaded or saved?

No. Processing runs on your device. Inputs and results stay in this page’s memory until you clear it or leave. They are not uploaded, logged or stored by ToolRobin. Copying places the result on your device’s clipboard.