HTML Entity Encoder / Decoder is a free online developer tool to encode a string to HTML entities or decode HTML entities to their original characters.
This tool is split into two modes: HTML Entity Encoder
and HTML Entity Decoder
.
HTML Entity Encoder - Encodes a string and any unprintable ASCII symbols including &
, <
, >
, "
, '
, and `
by replacing them with character references.
Optionally, you can specify the following options when encoding.
Use named references - Use named HTML characters instead of hexadecimal values. This option is disabled by default. Please note that such HTML characters are not compatible with older versions of browsers.
For example, the Euro symbol €
will result in €
(named) instead of €
(hex).
Use decimal values - Use decimal values instead of hexadecimal ones.
From the example above, the Euro symbol €
will be encoded to €
(dec) if you have this option enabled.
Encode everything - As the name indicates, this option simply encodes every single character.
For example, appdevtools
will result in appdevtools
.
Allow unsafe symbols - Do not encode unsafe HTML characters; i.e. &
, <
, >
, "
, '
, and `
. This option will be ignored if encode everything
is enabled.
HTML Entity Decoder - Decodes HTML entities to their original characters just by entering an input string. The result will be displayed accordingly.
Optionally, you can set the tool to treat the input string as if it's an HTML attribute value by enabling the attribute value
option.