Output appears here...How to use
Paste text or markup
Add the string you need to escape, or the entity-filled HTML you want to read. The Try sample button loads a link tag with an ampersand and quotes.
Click Encode or Decode
Encode swaps the special characters for entities. Decode expands named entities plus decimal and hex codes, so © and © both come back as the copyright sign.
Copy the safe output
Use the Copy button to move the escaped string into your template or attribute, or the decoded text back into your editor.
Why HTML Entity Encoder
- Two-way conversion of html entities. Encode special characters or decode them back, all in one html encode decode flow.
- Handles named and numeric html character codes on decode, including & and '.
- Runs in your browser. Your text never leaves your device.
- Use it to html escape text before you drop it into an attribute, so quotes and angle brackets stay safe.
- Free with no limit. This html encode online tool has no sign up and no cap.