HTML Entity Encoder

Escape HTML special characters or convert named and numeric entities back into readable text.

Direction
Mode
Input

Escapes only the five characters that break HTML: & < > " and '.

Result

How to Encode HTML Entities

1

Pick a direction

Encode when you need to show markup as text or put user input safely into a page. Decode when you have entity codes in a file or an export and want to read them.

2

Choose how much to escape

Minimal covers the five characters that actually break HTML. Named produces readable entities where one exists. Numeric escapes everything outside ASCII for maximum compatibility.

3

Copy the result

The output updates as you type. Round trips are safe: encoding and then decoding returns exactly what you started with, including Turkish characters.

Features

Encode and decode in one tool
Minimal mode for the five HTML-breaking characters
Named entities for symbols such as copyright, arrows and dashes
Numeric mode for maximum compatibility with older systems
Decoding accepts named, decimal and hexadecimal entities
Correct handling of Turkish and other non-ASCII characters
Runs entirely in your browser, nothing is uploaded
Free with no sign-up and no length limit

Frequently Asked Questions

Ampersand, less than and greater than always. Inside attribute values you also need to escape whichever quote character wraps the attribute. Minimal mode handles all five.

Escaping output is a necessary part of it, but it is not the whole answer. Context matters: text, attributes, URLs and inline scripts each need different handling, and a template engine that escapes by default is safer than escaping by hand.

Named entities such as &copy; are readable but only exist for a limited set of characters. Numeric entities work for every character and are the safer choice for systems with unreliable encoding.

Not if your page is served as UTF-8, which it should be. Escaping them is only useful when something in the pipeline mangles the encoding.

Because a normal space does not need escaping. Only the non-breaking space becomes &nbsp;, which is what you want: encoding every space would change how the text wraps.

No. Both directions run in your browser, so pasted templates and user content stay on your device.

Yes. Decoding accepts common named entities plus any decimal or hexadecimal numeric entity, which covers what you will find in exports and legacy files.

Yes, completely free with no sign-up.

Need a Custom Tool or Application?

We build production-grade web applications, SaaS platforms, and developer tools. Let's talk about your project.

or book a free call