HTML & URL Encoding Reference
Common HTML entities and URL-encoded characters that you frequently need when developing web applications.
| Character | HTML Named | HTML Numeric | URL Encoded | Description |
|---|---|---|---|---|
| |   | %C2%A0 | Non-breaking space |
< | < | < | %3C | Less than |
> | > | > | %3E | Greater than |
& | & | & | %26 | Ampersand |
" | " | " | %22 | Double quote |
' | ' | ' | %27 | Single quote |
/ | %2F | Forward slash | ||
? | %3F | Question mark | ||
# | %23 | Hash | ||
= | %3D | Equals | ||
+ | %2B | Plus | ||
: | %3A | Colon | ||
@ | %40 | At sign | ||
| | | | | | %7C | Vertical bar |
¢ | ¢ | ¢ | %C2%A2 | Cent |
£ | £ | £ | %C2%A3 | Pound |
€ | € | € | %E2%82%AC | Euro |
© | © | © | %C2%A9 | Copyright |
® | ® | ® | %C2%AE | Registered trademark |
™ | ™ | ™ | %E2%84%A2 | Trademark |
Character Converter
Text Converter
URL Encoding
Encoded
Decoded
HTML Entities
Encoded
Decoded
Notes
HTML Entities
- Named entities start with
&and end with;(e.g.,&) - Numeric entities start with
&#and end with;(e.g.,&) - Some characters have multiple valid representations in HTML5
- Named entities can improve code readability by being more descriptive
URL Encoding
- Also known as percent-encoding
- Reserved characters must be encoded when used in certain URL components
- Unreserved characters (A-Z, a-z, 0-9, -, _, ., ~, ’) should not be encoded
- Multi-byte characters (like €) are encoded as multiple percent-encoded bytes
References
HTML Entities
- HTML Living Standard - Named Character References
- HTML5 Named Character References
- HTML Numeric Character References
URL Encoding
- RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax
- Section 2.2: Reserved Characters
- Section 2.3: Unreserved Characters
- URL Living Standard - Percent-encoding