HTML Encoder

Updated: Oct 1, 2017

HTML Encoder is used to encode or escape text that is normally unsafe for transmission in HTML. These are special characters that have special meaning in the HTML format.

Input: Paste plain text below

HTML Decoder

Decode or unescape text that has been encoded using HTML encoding back to it's original form & download the output

View Tool
Background Information

Certain characters need to be encoded (escaped) in HTML. Read more at wikipedia.

Example Substitutions

  • & → & (ampersand, U+0026)
  • &lt; → < (less-than sign, U+003C)
  • &gt; → > (greater-than sign, U+003E)
  • &quot; → " (quotation mark, U+0022)
  • &apos; → ' (apostrophe, U+0027)

How to do HTML encoding in various programming languages

    • Language: VB .NET
    • Encode: System.Net.WebUtility.HtmlEncode()
    • Decode: System.Net.WebUtility.HtmlDecode()
    • Example: Example
    • Documentation: HtmlEncode() HtmlDecode()
    • Language: Java
    • Encode: org.apache.commons.lang.StringEscapeUtils.escapeHtml()
    • Decode: org.apache.commons.lang.StringEscapeUtils.unescapeHtml()
    • Example: Example
    • Documentation: escapeHtml() unescapeHtml()
    • Language: JavaScript
    • Encode: htmlEncode()
    • Decode: htmlDecode()
    • Example: Example
    • Documentation:

You may also like...

Base32 Encoder

Encode text or files using Base32 encoding & download the output, all on the client side

View Tool

Base64 Encoder

Encode text or files using Base64 encoding & download the output, all on the client side

View Tool

URL Encoder

Encode text using URL encoding for safe transmission in the URL

View Tool

Comments 0


Aug 20, 2017
Tool Launched