HTML Entities Encoder

Encode special characters to HTML entities (named, decimal or hexadecimal) and decode entities back to text. Option to encode only unsafe characters.

Runs locally — nothing is uploaded

Text

Encoded

How to use HTML Entities Encoder

  1. Paste text or HTML.
  2. Choose encode or decode and the entity style.
  3. Copy the result.

FAQ

What are the “unsafe” characters?

& < > " and ' — the five characters that can break HTML markup.

About the HTML Entities Encoder

Escape code snippets for blog posts and documentation, or decode &amp;-filled text from feeds and CSV exports. Convert Markdown to HTML with Markdown to HTML and percent-encode URLs with the URL Encoder / Decoder.

Also useful: HTML to Markdown · Find and Replace Text

Popular searches

People find HTML Entities Encoder by searching for:

  • html entities encoder
  • html encode
  • html decode
  • escape html
  • html special characters