Loading…

How to use HTML Entities Encoder

Type or paste your text, and the tool encodes special characters like & and < into their HTML entity references.

Frequently asked questions

Which characters must be HTML-encoded?

<, >, &, " and ' must be encoded to prevent HTML injection and XSS vulnerabilities.

What is the difference between &#60; and &lt;?

They both produce '<'. Named entities (&lt;) are more readable; numeric entities (&#60;) work in all parsers.

Should I encode all characters?

For security, encode at least <, >, &, " and '. Full encoding is optional but ensures maximum compatibility.

More Encoders & Decoders

HTML Entities Decoder
Decode HTML entities back to their plain text form
Text to Binary
Convert text to 8-bit binary (0s and 1s) format
Binary to Text
Convert binary (0s and 1s) back to readable text
Text to Hex
Convert text to hexadecimal (base 16) encoding
Hex to Text
Decode hexadecimal values back to readable text
ASCII Code Lookup
Look up ASCII codes and convert characters to/from codes
Text to Octal
Encode text as octal (base 8) numbers
Unicode Encoder
Encode text to Unicode code points (\\u escape format)
Unicode Decoder
Decode Unicode escape sequences back to text
Unicode Character Lookup
Look up any Unicode character by code point or name
JWT Decoder
Decode & inspect JWT tokens (header, payload, signature)
Caesar Cipher
Encode or decode text with the classic Caesar shift cipher

← View all Encoders & DecodersBrowse all 1,100+ tools →