Tabs to Spaces

Convert tabs to spaces (default 4) or spaces to tabs, and report how many conversions were made. Runs locally in your browser.

Convert tabs to spaces or spaces to tabs with conversion count.

0 conversions.

Ready

How to use Tabs to Spaces

  1. Paste your text.
  2. Choose direction and spaces per tab.
  3. Copy the converted text.

Frequently asked questions

What is the default tab width?

4 spaces.

Can I convert spaces back to tabs?

Yes. Switch to spaces-to-tabs mode.

Is my text uploaded?

No. Conversion runs entirely on your device.

How is the count calculated?

Tabs-to-spaces counts tabs; spaces-to-tabs counts replaced groups.