Free Developer Tool
HTML Entity Encoder And Decoder
Encode special characters into HTML entities or decode HTML entities back into readable text instantly in your browser using the native DOMParser API. Choose named, decimal, or hexadecimal output and control which characters get encoded. No uploads to any server, completely private.
🔤
Drop a text or HTML file here or click to browse
Or paste text directly into the editor below
Uses readable names where available, for example & and é
Only encodes the five characters that are reserved in HTML markup
Encoded 13 characters into HTML entities.Live
70 BInput Size
118 BOutput Size
13Entities Created
65Input Characters
How to use the HTML Entity Encoder and Decoder
Choose Encode to convert plain text into HTML entities, or Decode to convert HTML entities back into readable text
Type or paste your input directly into the editor, or drop a text or HTML file onto the upload area to load it automatically
Select Named Entities for human readable output, Decimal Numeric for universal compatibility, or Hexadecimal Numeric for code that prefers hex references
Choose Basic Encoding Scope to only escape characters reserved by HTML markup, or Extended to also encode accented letters and other non-ASCII symbols
Decoding uses the native DOMParser API to safely interpret entities the same way a browser would render them
Use Swap and Convert to instantly move the output back into the input field and flip between encode and decode modes
Open the Entity Breakdown tab to see every individual entity along with its decoded character and Unicode code point
Check the Common Entities tab for a quick reference of widely used characters in named, decimal, and hexadecimal form
Click Copy Output to copy the result to your clipboard, or Download to save it as a standalone text file
All encoding and decoding happens locally in your browser using native JavaScript APIs. Your text is never uploaded to any server



