Work through ampersands and angle brackets, compare encoded text with rendered markup, and avoid accidentally encoding the same text twice.
Escaping text lets a page display characters that would otherwise be read as markup. It is different from sanitising an entire HTML document. Decide whether you want to show a tag as text or allow the tag to format the page.
Worked example: Display a tag as text
Input
<b>Tom & Ana</b>
Expected result
An encoder can represent this as <b>Tom & Ana</b>. A viewer then displays the original tag text instead of making the names bold.
The exact choice of named or numeric entities can vary while producing the same visible characters. Escaping a value does not by itself make every possible HTML or script context safe.
Before you use the result
- Choose encoding when displaying raw text; decoding restores the characters.
- Check whether your template system already escapes values.
- Use a proper HTML sanitiser when accepting formatted HTML from other people.
If the result is not what you expected
The page displays &lt; instead of an angle bracket.
The text was probably escaped twice. Check where your application applies escaping and keep one appropriate boundary for the intended output.
Step-by-Step Walkthrough
Pick Mode
Select HTML Encoder to escape symbols or HTML Decoder to unescape.
Choose Standard
Pick named entities, decimal codes, or hex format.
Review & Copy
Inspect the converted output and copy it directly to your clipboard.
Key Capabilities & Features
Convert symbols to named (&), decimal (&), or hexadecimal (&) entities
Decode HTML entities back to raw text with one click
Quick-click symbol palette for common symbols and currency signs
Private and client-side with zero data transmission
Frequently Asked Questions
Ready to try HTML Entity Encoder & Decoder?
Open HTML Entity Encoder & Decoder and try the example from this guide. Check the tool page for supported formats, limits, and access requirements.