FREE ONLINE TOOLCode & data

HTML entity converter

Encode HTML special characters or decode entities into text

Encode HTML-sensitive characters or decode standard character references in your browser.

  • No account needed
  • Practical guide included
  • Clear data boundaries
HTML entity converter
Private by design

Preparing your workspace…

HTML entity converter features and uses

A literal ampersand or angle bracket may need a different representation inside HTML source. Encode HTML-sensitive characters or decode existing character references into readable text. The result is displayed as text, giving you a reviewable transformation without executing the decoded markup.

Use entity encoding for the correct HTML context and inspect the resulting text after decoding. Converting entities alone does not sanitize arbitrary markup or make a string safe inside JavaScript, CSS or a URL.

Continue this task with HTML to plain text and URL encoder.

Common uses

  • Prepare text for an HTML fragment.
  • Read entity-encoded content from an export.
  • Compare literal characters with their HTML representation.

How to use this tool

Follow these steps to prepare your input, run the tool and review its output.

  1. Paste text or encoded character references

    Choose the content you want transformed. Keep the intended output context in mind before applying the result.

  2. Select encode or decode

    Encoding escapes HTML-sensitive characters. Decoding uses the browser’s handling of character references in an inert textarea.

  3. Review the transformed string

    Copy the output into an appropriate workflow. Use a separate context-specific encoder when writing JavaScript, CSS or URLs.

Example input and output

Representing literal angle brackets

Illustrative example
Starting input
Input: Tom & Jerry <example>
Operation: Encode
What to look for
Tom & Jerry <example>

Decoding this example returns the original characters as text; it does not insert an active element into the results.

How to interpret the results

Escaping is context-dependent. HTML text and quoted attributes are different destinations from script source, style rules or URL components.

Already encoded input can be encoded again, producing a different string. Decide whether you need a single decode, encode or unchanged value.

Before you use the result

  • Do not treat this output as JavaScript or CSS escaping.
  • Check for accidental double encoding.
  • Decoded text may become active markup if another application inserts it unsafely.

Frequently asked questions

Answers about using this tool, interpreting its results and how it handles your data.

How we handle your data
Does decoding run HTML?

No. The result is displayed as text, not executed as markup.

Can it decode numeric references?

The browser textarea decoding behavior handles recognized numeric and named character references.

Is encoding a complete HTML sanitizer?

No. It transforms sensitive text characters; it does not review an application’s complete rendering or security behavior.

Should I encode an entire URL with this?

Not for URL-component encoding. Use the URL-specific conversion tool for that context.

Is this tool free, and do I need to sign up?

This tool is free to use without an account or subscription. Supply your input in the workspace on this page, then run the tool. Your browser needs to support the features used by the tool; keep an original copy and review any generated output before applying it to a live website.

Are my files or text uploaded to your server?

This tool processes the supplied input locally in your browser. It does not upload your files or text to our server for processing. Copy or download the result you want to keep; the tool does not publish changes to your website automatically.