RichScriptsAll tools ↗
FREE BROWSER TOOL

HTML Entity Encoder / Decoder

Convert text to HTML entities or decode entities back to text.

✓ No uploads✓ No account✓ Copy or download

Input & settings

Result

How to use it

  1. 1Choose a direction

    Encode plain text into HTML entities, or decode entities back into readable text.

  2. 2Paste your content

    Any size from a single character to a full page of markup.

  3. 3Copy the result

    The converted text is ready to paste into your template or CMS.

Good to know

Decoded text is never executed

Results are shown as plain text, so pasted markup cannot run scripts in this page.

Named and numeric entities

Decoding understands named entities such as & along with numeric forms like ©.

For HTML text content

Entity encoding is not a universal sanitizer. Attributes, JavaScript strings, CSS and URLs each need their own escaping.

Nothing leaves the browser

Your text is converted locally and never uploaded.

Common uses

  • Showing example HTML inside a blog post
  • Fixing text that arrived as " from an old feed
  • Pasting symbols such as © or → safely into a template
  • Reading an entity-encoded export
  • Preparing code samples for documentation

Questions

When do I need HTML entities?

Whenever a character would otherwise be read as markup: <, > and & in page text, and quotes inside attribute values.

Does encoding make my page safe from XSS?

Not on its own. Escaping HTML text is one part of it; attributes, URLs, CSS and JavaScript contexts need their own handling, and user input should be validated server-side.

Can it decode &amp;#8217; style codes?

Yes. Numeric entities in decimal and hexadecimal are both decoded.

Is my content sent to a server?

No. The conversion happens in your browser.

How it works

Decoded HTML is shown as plain text and never executed. Encoding is for HTML text content, not a universal sanitizer for JavaScript, CSS or URLs.