String Literal Escaper

String Escaper

String escaping allows you to encode characters in strings that would otherwise be unprintable, or would hold special meaning to the string parser, such as the backslash character (\). Once escaped these strings will retain their literal meaning when used as string literals.

Enter a string to escape, choose the language you plan to use the string in, and we will replace all the special characters with their escaped versions.

Language (mouse-over to see impacted characters)
  •  
  •  
  •