FreeDev Tools

Tabs to Spaces Converter

Convert indentation between tabs and spaces with a configurable tab width.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Paste your code

    Any language β€” only whitespace is changed.

  2. 2

    Pick direction and width

    Set the tab width to match your style guide.

  3. 3

    Copy the reindented code

    Paste back into your editor with consistent indentation.

Frequently Asked Questions

Both β€” choose Tabs β†’ Spaces or Spaces β†’ Tabs and set the tab width (1-8 columns, default 4).