HTML Entities Encoder

Paste HTML-unsafe text and get it with all special characters escaped as entities.

Summary

Paste HTML-unsafe text and get it with all special characters escaped as entities.

How it works

  1. Paste text containing HTML special characters
  2. Choose named (&) or numeric (&) entities
  3. Click Encode
  4. Copy the safe output

Use cases

  • Escaping user input before inserting into HTML
  • Displaying code examples safely in web pages
  • Preparing text for embedding in HTML attributes

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu