Escape JSON Text


Use this online tool to escape (or encode) JSON string to make sure that special or reserved characters are encoded via proper escaping. The escaped text can be used in JSON strings safely without making the JSON invalid. Typical usage would be if you want to store HTML in a JSON property.

See Substitutions for more information.

Read more at wikipedia.

Input: Paste plain text below


  • Tab becomes \t
  • Newline becomes \n
  • Carriage Return becomes \r
  • Formfeed becomes \f
  • Backspace becomes \b
  • Double Quote becomes \"
  • Next Line (U+0085) becomes \u0085
  • Line Separator (U+2028) becomes \u2028
  • Paragraph Separator (U+2029) becomes \u2029