← All free tools

Add Slashes

escape quotes and slashes

Plain text

Empty

Encoded
Example output:
He said \"hi\"

Empty

About this tool

Add Slashes puts a backslash before each backslash, single quote and double quote in the input.

Inputs, results and saved preferences stay in this browser.

When to use it

  • Inspect how quoted text looks with backslash escapes.
  • Prepare a short string for a format that uses these escape sequences, then check the target syntax.

Examples

Questions