HTML Entity Encoder
Safely show code and special characters on a web page, or turn &-style entities back into readable text.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Mode
Encode
How to use HTML Entity Encoder
- Choose Encode or Decode.
- Pick how much to encode.
- Copy the result.
Frequently asked questions
Which characters must be escaped in HTML?
& < > " and ' — these five can break markup or create security holes. Escaping them prevents cross-site scripting in user content.
What is the entity for the rupee sign?
₹ (₹). There is no named entity for it.
Related tools
All Developer Tools →- URL Encode / Decode Make text safe for URLs and query strings, or read encoded URLs from logs and analytics.
- Code Beautifier Make minified or badly indented code readable again.
- SQL Formatter Make long, single-line SQL queries readable for code reviews, documentation and debugging.
- HTML to Markdown Turn HTML from a web page, CMS or email into Markdown you can use in READMEs, wikis and static site generators.
- HTML / CSS / JS Minifier Shrink CSS, JavaScript and HTML by removing comments, whitespace and unnecessary characters.
- .env Formatter Check environment files for mistakes and convert them for Docker, Kubernetes or documentation.