Tools
Runs locally

Tabs to Spaces

Expand tabs to a fixed width.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Expand tabs to a fixed width. Runs in the browser. Nothing is uploaded.

About this tool

Make indentation consistent before committing code, pasting into a forum or sending a snippet. Choose how many spaces each tab should become.

How to use it

  1. 01

    Paste the code or text.

  2. 02

    Set the number of spaces per tab, from 1 to 8.

  3. 03

    Copy the converted text.

FAQ

Frequently asked questions

Are tab stops respected?

No. Every tab is replaced by the same number of spaces, regardless of its column.

How do I convert spaces back to tabs?

Use the Spaces to Tabs tool with the same size.