HTML Entity Encoder

Convert special characters in a text to HTML entities, or the other way around.

Text
Result

HTML Entity Encoder is a free tool that runs entirely in your browser, with no data ever sent to a server. Convert special characters in a text to HTML entities, or the other way around.

What it's for

Display HTML code as an example on a web page without the browser running it, or decode a text received already encoded to read its actual content.

What this tool does not do

This tool only applies the transformation described, with no spellchecking and no interpretation of the text's meaning. A text of several tens of thousands of lines processes instantly; beyond that, the only limit is your device's memory.

Frequently asked questions

Why encode the angle brackets < and >?

A browser interprets < and > as the start of a tag. To display HTML code as plain text rather than run it, they need to be replaced with their entities &lt; and &gt;.

Is my data sent to a server?

No: the text you type or paste is processed entirely in your browser, on your device. It is never transmitted to a server.

Do I need to create an account or install anything?

No: the tool works directly in this page, with no sign-up and nothing to install.