Free online tool. All processing is client-side. No signup needed.
An HTML Entities tool encodes and decodes HTML entities — the special character sequences used in HTML to represent reserved characters and symbols that can't be typed directly. The most common examples: & for & (since & has special meaning in HTML), < for < (opening tag delimiters), > for >, " for double quotes inside attributes, and for a non-breaking space. This tool handles the full range of HTML entities including named entities (© → ©), decimal numeric entities (© → ©), and hex entities (© → ©).
Paste text and choose encode (text → HTML-safe with entities) or decode (HTML entities → readable text). The encoder replaces &, <, >, \
Minimal Required Escaping (prevents XSS):\n• & → &\n• < → <\n• > → >\n• \
Five characters: & (always — it starts all other entities), < and > (tag delimiters — unescaped creates unintentional HTML), " (inside double-quoted attributes), and ' (inside single-quoted attributes). For safety, escape all five whenever outputting user data as HTML.
Always encode user input before rendering as HTML. Use Content Security Policy (CSP) headers. Never insert user data into <script> tags or event handlers (onclick, onerror). Use frameworks with auto-escaping (React, Vue, Angular). Our tool helps by encoding text correctly.
Free online Html Entities — no signup, 100% client-side processing. All data stays in your browser.