HTML Entity Encoder / Decoder
Convert special characters to HTML entities or decode entities back to readable text.
How to Use HTML Entity Encoder/Decoder
Step 1
Paste or type your HTML or plain text into the input field.
Step 2
Click Encode to escape special characters, or Decode to unescape them.
Step 3
View the result in the output field.
Step 4
Click Copy to copy the output to your clipboard.
Features
Encodes all five HTML-reserved characters: &, <, >, ", and '.
Decodes named and numeric HTML entities back to text.
One-click copy to clipboard.
Runs entirely in your browser — no server involved.
Free to use with no account required.
FAQ
HTML entities are special codes used to represent reserved characters in HTML. For example, < is represented as < and & is represented as &.
Encoding prevents the browser from interpreting special characters as HTML tags or attributes, which helps avoid rendering issues and cross-site scripting (XSS) vulnerabilities.
The encoder converts the five key HTML-reserved characters: & (ampersand), < (less-than), > (greater-than), " (double quote), and ' (single quote/apostrophe).
No. Everything runs in your browser. Your text never leaves your device.