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.

See Substitutions for more information.

Read more at wikipedia.



Unescape JSON

Input: Paste plain text below



Output: JSON escaped string


Substitutions

  • 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
Feedback