Skip to content
Buy me a coffee
String Escaper & Utilities

String Escapers & Utilities

Escape and unescape HTML, XML, Java/.Net, JavaScript, JSON, CSV and SQL strings, plus handy string utilities.

String Utilities

Handy string utilities: upper/lower case, reverse, character and word count, string splitter and detailed character information (decimal, octal, hex, unicode, HTML entity).

  • Lowercase, uppercase, title case, reverse
  • Character, word and line count
  • String splitter with escape sequences
  • Detailed character information
Open tool

HTML Escape / Unescape

Escapes or unescapes an HTML string, replacing characters that could be wrongfully interpreted as markup with their HTML entities.

  • Escapes all reserved characters (&, <, >, ", ')
  • Optionally escapes ISO-8859-1 and named entities
  • Unescapes named, decimal and hexadecimal entities
Open tool

XML Escape / Unescape

Escapes or unescapes an XML string, replacing the five reserved characters with their corresponding XML entities.

  • &apos; &quot; &amp; &lt; &gt;
  • Unescapes numeric character references
Open tool

Java / .Net Escape / Unescape

Escapes or unescapes a Java or .Net string, replacing characters that could prevent compiling with their escape sequences.

  • \b \n \t \r \f \" \\ escape sequences
  • Optional \uXXXX escaping of non-ASCII characters
Open tool

JavaScript Escape / Unescape

Escapes or unescapes a JavaScript string, replacing characters that could prevent interpretation with their escape sequences.

  • \t \v \0 \b \f \n \r \' \" \\ escape sequences
  • Unescapes \xXX and \uXXXX sequences
Open tool

JSON Escape / Unescape

Escapes or unescapes a JSON string, replacing characters that could prevent parsing with their escape sequences.

  • \b \f \n \r \t \" \\ escape sequences
  • Optional \uXXXX escaping of non-ASCII characters
Open tool

CSV Escape / Unescape

Escapes or unescapes a CSV value, quoting values that contain commas, newlines or double quotes, and doubling embedded double quotes.

  • Quotes values containing delimiters, quotes or newlines
  • Doubles embedded double quotes
  • Configurable delimiter
Open tool

SQL Escape / Unescape

Escapes or unescapes a SQL string, doubling single quote characters that could prevent execution.

  • Doubles single quotes (ANSI SQL)
  • Optional MySQL backslash escaping
Open tool