HTML Encoder
Turn your HTML into HTML entities, percent-encoding or a one-line JavaScript output, and decode it back.
This tool runs entirely in your browser; nothing you enter is sent to a server or stored.
In short
HTML encoding turns special characters such as <, >, & and quotes into entities the browser will not treat as tags. It is needed to show code samples on a page or print user input safely; decoding reverses it.
About the HTML encoder
Converts your HTML into three forms: numeric HTML entities (like <), percent-encoding (like %3C) or a one-line JavaScript output that the browser decodes and writes. “Decode” turns these forms back into readable code. Everything runs in your browser.
Encoding is not real encryption; it only makes code hard to read at a glance. It suits jobs such as hiding email addresses from simple bots, not protecting secrets. The JavaScript output can make it harder for search engines to read the content.
Who uses it and when?
- Writers sharing code samples
- Developers displaying user input safely
- Marketers building email templates
Frequently asked questions
How does encoded HTML look on the page?
HTML entities and the JavaScript output render as normal content; only the source becomes harder to read.
Can I decode it again?
Yes, “Decode” reverses all three forms.