AnyNPC
|
Input
1
Output
Result will appear here...
0 chars|Size: 0 B

HTML Entity Encoder / Decoder

HTML entity encoder and decoder. Encode special characters (< > & " ') to HTML entities or decode entities back to readable text. Prevents XSS attacks and broken markup when displaying user-generated content or code snippets. Supports named entities, decimal (&#38;), and hex (&#x26;) numeric references. Features include encode-all-non-ASCII option, drag-and-drop file upload, one-click copy, and download results as text files. All processing runs locally in your browser — your data never leaves your device.

Features

  • Encode or decode HTML entities in real time
  • Supports named entities (&amp;), decimal (&#38;), and hex (&#x26;) references
  • Encode all non-ASCII option for international content compatibility
  • Instant results as you type, no button to press
  • Drag-and-drop file upload, one-click copy, and download as .txt
  • Works entirely in your browser — no data uploaded

How to Use

  1. 1Paste your text into the input area. Toggle between Encode and Decode.
  2. 2Enable Encode all non-ASCII to convert non-ASCII chars (é, 中文, 🚀) to numeric entities.
  3. 3Results update instantly. Use Copy or Download to save.

Frequently Asked Questions

Related Tools