HTML Entities — Escape Characters Online
Encode special HTML characters.
An HTML entities converter encodes and decodes special characters so they can be safely embedded in markup. To keep "<" from being read as the start of a tag, it's written as <; likewise > stands for ">", & for "&", and " for a quotation mark.
Encoding is needed whenever HTML needs to display code itself or characters that would otherwise break the markup — for example, showing a sample tag inside an article. It's also a basic defense against XSS: user-submitted text gets escaped so that an entered "<script>" renders as plain text instead of executing. Decoding does the reverse, turning entities back into ordinary characters.
The tool handles both named (<) and numeric (<) entities, and supports non-Latin text and Unicode. Everything runs right in your browser, and your data is never sent anywhere.