Skip to content

HTML encoder and decoder

Escape special characters for HTML and restore the original text.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · HTML encoder and decoder

Runs in your browser · 100% local
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Paste or type the text into the input field.

02

Choose the option or format you need.

03

Copy the result; the original text is not altered on any server.

Examples

Examples

Escape characters

“<strong>Hello</strong>” is displayed as text, not as HTML.

Decode

‘&amp;’ becomes ‘&’ again.

Reference guide

What you need to know

Encoding converts characters such as &, <, >, " and ' into HTML entities so that they are displayed as text. Decoding reverses this process. It is not a substitute for security sanitisation.

Frequently asked questions

Frequently Asked Questions

No. Each context has its own escape rules.

Related tools

Other tools that can help with similar tasks.

More at Text→
HTML encoder and decoder · Free online tool · ByTooly