BaroBenchYour digital workbenchWorkbench
KOEN한국어로 전환
Your inputs and files are processed in this browser.Ready without an account

HTML entity encoder & decoder

Encode special characters as HTML entities or decode named and numeric references.

Processed in this browser · nothing is uploaded

Input & options

Result

Ready when you are

Enter your input and run the tool to see your result here.

Good to know

Represents characters such as < and & as &lt; and &amp;. Decoded content is displayed as text and never executed as HTML. This tool does not replace context-aware sanitization.

For example
Operation: encode
Input: <p>안녕 & hello</p>
FIELD NOTES

Understand and use your results

Display HTML examples in documentation or read entity-encoded text. Results are shown as copyable text rather than executed HTML.

How to use it

  1. Encode to represent special characters as entities, or decode to restore text.
  2. Check angle brackets and ampersands, then copy for the intended context.

Worked example

Input and options
&lt;p&gt;Hi &amp; bye&lt;/p&gt; (decode)
Result or interpretation
<p>Hi & bye</p>

&lt; represents < and &amp; represents &. Even tag-like output is displayed only as text here. Encoding an already encoded string can produce nested entities such as &amp;lt;.

Is this an XSS protection tool?

No. HTML text, attributes, JavaScript and URLs need different protections. Inserting decoded output into innerHTML elsewhere can be unsafe. Use context-aware escaping and validation in the actual application.

Unexpected result? Report a problem

What are you working on?

↑ ↓ navigate · Enter open · Esc close