Tools/HTML Entity Encoder / Decoder
Encoding & Conversion

HTML Entity Encoder / Decoder

Convert &, <, >, and quotes into safe HTML entities, or reverse an entity-encoded string back to plain text.

Free & unlimitedRuns in your browserNo sign-up required
Loading tool…
How it works

Three steps, no setup

1

Paste your text or markup

Works on plain snippets or full fragments of HTML.

2

Choose the direction

Escape raw text for safe embedding, or decode entities back to characters.

3

Copy the output

Ready to paste directly into a template or CMS field.

Common questions

Frequently asked questions

When do I need this?
Whenever user-supplied text is rendered inside HTML — escaping prevents a stray < or & from breaking the markup or enabling injection.
Does this replace proper XSS sanitization?
No — this is a convenience encoder for content editing. Production applications should use a battle-tested sanitization library for user input.
Chat with us
Usually replies in minutes