Encodeur / Décodeur d'Entités HTML

Convertissez du texte en entités HTML et décodez les entités HTML en texte instantanément. Supporte les entités nommées (<) et numériques (<). 100% côté client.

About HTML Entity Encoder / Decoder

HTML Entity Encoder / Decoder is a free online tool that converts special characters into HTML entities and vice versa. HTML entities are special codes used to represent characters that have reserved meanings in HTML, such as <, >, &, and quotes. This tool supports named entities (like &lt;), numeric entities (like &#60;), and all-numeric encoding. It's essential for web developers, content creators, and anyone working with HTML or XML data. All processing happens instantly in your browser — no data is sent to any server.

Features

How to Use HTML Entity Encoder / Decoder

  1. Enter or paste your text into the Input field. You can type plain text to encode or HTML entities to decode.
  2. Select the Mode: choose "Encode" to convert text to entities, or "Decode" to convert entities back to text.
  3. For encoding, choose an Entity Style: Named Entities (e.g., &lt;), Numeric Entities (e.g., &#60;), or All Numeric (every character as &#NN;).
  4. Click the "Process" button or simply start typing — the tool processes automatically as you type.
  5. View the result in the Output section. Use the "Copy" button to copy the result to your clipboard.
  6. Use the "Swap" button to move the output back to the input for further processing.

Common Use Cases

Frequently Asked Questions

What are HTML entities?

HTML entities are special character sequences that represent reserved characters in HTML. For example, &lt; represents the less-than symbol (<), &gt; represents greater-than (>), and &amp; represents the ampersand (&). They ensure these characters display correctly in browsers instead of being interpreted as HTML markup.

What is the difference between named and numeric entities?

Named entities use memorable names like &lt; for < and &copy; for ©. Numeric entities use Unicode code points like &#60; for < and &#169; for ©. Named entities are easier to read, while numeric entities work for any Unicode character and are more universally supported.

When should I use HTML entity encoding?

Use HTML entity encoding when you need to display special characters that would otherwise be interpreted as HTML markup. This includes angle brackets (< and >), ampersands (&), quotes, and other reserved characters. It's also useful for displaying characters not available on your keyboard.

Can I decode any HTML entity?

Yes, the decoder handles all standard HTML entities including named entities (like &lt;, &gt;, &amp;), decimal numeric entities (&#60;), and hexadecimal numeric entities (&#x3C;). The tool uses the browser's native HTML parsing for accurate decoding.

Is my data private when using this tool?

Absolutely. All encoding and decoding happens entirely within your browser. No text or data is transmitted to any server, making this tool completely private and secure for sensitive content.

What characters are supported for named entity encoding?

The tool supports over 200 named entities including common symbols (&lt;, &gt;, &amp;, &quot;), currency symbols (&euro;, &pound;, &yen;), mathematical symbols (&plusmn;, &times;, &divide;), Greek letters (&alpha;, &beta;, &gamma;), and many more. For characters without named entities, numeric encoding is used.

Related Tools