Plain text input
Paste text to make special characters safe for HTML source.
Convert special characters to HTML entities and decode HTML entities back to readable text in your browser.
Paste text to make special characters safe for HTML source.
Read-only plain text. Decoded HTML is not rendered or executed.
Output appears here as you type.
HTML entities are text escape sequences that represent characters in HTML source. They are useful when a character could be mistaken for markup, such as <, >, or &.
Encoding turns plain characters into entity text. Decoding reverses supported entity text back to readable characters while preserving unknown or invalid entities with warnings.
Named entities use memorable labels like &. Numeric entities use Unicode code points, such as decimal © or hexadecimal ©.
Common examples include & for ampersand, < for less-than, > for greater-than, " for double quote, ' for apostrophe, and for a non-breaking space.
Encode text before placing it inside HTML source, templates, examples, or documentation where user-provided text should remain text instead of becoming tags, attributes, or entity syntax.
HTML entity encoding is for HTML source text. URL encoding is for addresses, query parameters, and form values. A space, ampersand, or slash may need different treatment depending on where the value is used.
No. Encoding, decoding, warnings, copy actions, and downloads run locally in your browser.
& is the named HTML entity for an ampersand character. Encoding ampersands prevents them from starting another entity accidentally.
HTML encoding protects text inside HTML source. URL encoding prepares values for URLs and query strings, using percent escapes such as %20.
Most HTML text only needs unsafe characters encoded. Encoding every character can be useful for demos or strict transport formats, but it makes source harder to read.
Yes. Decimal entities like © and hexadecimal entities like © can be decoded.
No. Output is displayed as escaped plain text. This tool does not insert decoded HTML into the page or execute scripts.