Text

Shell Quote

Wrap text in single quotes for bash.

How to use Shell Quote

Shell Quote — Wrap a string in single quotes so bash treats it as one argument. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in Text. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is Shell Quote used for?

Use it before you paste a path, password, or message into a shell command.

How do I use the free online Shell Quote tool?

Fill in Text. This field is required. Click Run and copy the result under the form.

What can I paste or upload into Shell Quote?

Paste the text you want quoted. Quotes already in the text are escaped for bash.

What output does Shell Quote give me?

One single-quoted string. A quote inside the text is closed, escaped, and reopened.

Is Shell Quote free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

Is this safe for every shell?

The quoting matches bash and other POSIX shells that use single quotes. It is not a Windows cmd.exe quote.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.