nTropi

HTML Entity Encoder / Decoder

Convert special characters to HTML entities and decode HTML entities back to their original characters.

Named entity encoding (e.g., &)
Numeric entity encoding (e.g., &)
Hexadecimal entity decoding
Non-ASCII character encoding
Common entities reference

  1. Enter Text: Type or paste the string you want to convert in the input box.
  2. Select Options: Toggle "Use named entities" to prefer © over numeric codes, or "Encode all" to escape every non-ASCII character.
  3. Convert: Click "Encode" to turn characters into safe HTML entities, or "Decode" to revert entities back to text.
  4. Swap/Clear: Use the helper buttons to swap input/output or clear fields instantly.

  • Security: Prevent Cross-Site Scripting (XSS) attacks by escaping user input before displaying it.
  • Data Integrity: Ensure special characters display correctly across all browsers and email clients.
  • Database Cleaning: Safely store text containing special symbols without breaking SQL queries or HTML layouts.

Other Tools