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
- Paste text containing HTML special characters
- Choose named (&) or numeric (&) entities
- Click Encode
- 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