Encode text to HTML entities or decode HTML entities back to plain text — instantly.
Select Encode to convert text to HTML entities, or Decode to convert entities back to plain text.
Paste your text or HTML in the input box.
Hit the Convert button and your encoded or decoded result appears instantly.
Copy the result to clipboard or download as a .txt file.
HTML encoding converts special characters into their HTML entity equivalents so they display safely in web browsers. For example, "<" becomes "<" and "&" becomes "&".
When you want to display HTML code inside a webpage without it being rendered — such as in a code snippet, tutorial, or when storing user input in a database. Encoding prevents XSS attacks and rendering issues.
Encoding converts plain text characters to HTML entities (< & " etc.). Decoding does the reverse — it converts HTML entities back to their plain text characters.
The tool encodes all characters that have HTML entity equivalents, including <, >, &, ", ', spaces, accented characters and special symbols.
Yes. All encoding and decoding happens entirely in your browser. Nothing is ever uploaded to any server.