Tabs / Spaces Converter

Expand tabs or compact leading indentation with fixed tab stops.

Scope: Spaces-to-tabs conversion changes leading indentation only.

Workbench

Inputs stay on this page.

How to use Tabs / Spaces Converter

  1. Fill in the fields:

    • Text.
    • Operation: Tabs to spaces at tab stops, Leading spaces to tabs.
    • Tab width: 1 to 16.
  2. Press “Convert indentation”.

  3. Copy the result, or download it as converted-indentation.txt.