Tabs to Spaces

Tabs replaced: 0


For formatting, change the tabs to spaces. This tool is useful if you have text or code in a file that is tabbed and you want it to take up less horizontal space. You can change how many spaces are the same as one tab.

Leading Tabs

Only tabs at the top. When turned on, this tool will only convert tabs that don't have another string before them (see examples). When turned off, all tabs will be replaced with spaces, no matter where they are.

Basic Examples

Example 1: Replace with 4 spaces. Leading tabs enabled.
[4 spaces]Hello[tab]World!

In the first example above, the tab between the word "Hello" and "World" is ignored because the tab is preceeded by a letter (o).

Example 2: Replace with 1 space. Leading tabs disabled.


  • You can see how many tabs have been changed in the bottom left corner.
  • In the text box, you can also use the tab key.

Related Tools