Skip to content
SUMILORASUMILORA

HTML entity encoder and decoder

Developer tools

Paste text or entities. The direction switches automatically.

Runs in your browser

Nothing is uploaded. The work happens on your own device, so your file or text never reaches us.

About this tool

Escape the five, not everything

Only five characters actually need escaping in HTML: & < > " and the apostrophe.

On a UTF-8 page, café and 日本語 are perfectly valid as themselves. Escaping them to caf&#233; makes the source unreadable and the file larger for no benefit. Every page has been UTF-8 by default since HTML5.

The "all non-ASCII" option is here for the rare case that needs it — a legacy system, an email template, a context where the encoding is not under your control.

Questions

Do I need to escape accented characters?

No, not on a UTF-8 page, which is every modern page. Escape only & < > " and the apostrophe.

What is &nbsp; for?

A space that will not break a line and will not collapse with neighbouring spaces. Useful between a number and its unit; overused as a layout spacer, where CSS is the right tool.

Related tools