tabs

Tabs to Spaces

Take up less white space by converting tabs to spaces.

Tabs replaced: 0

About


Transform tabs into spaces for the purpose of formatting. This tool proves beneficial when dealing with text or code that uses tab-based indentation, reducing its horizontal space footprint. You have the flexibility to determine the number of spaces equivalent to a single tab.

Leading Tabs


Exclusive handling of leading tabs. With this option enabled, the tool exclusively converts tabs that are not preceded by another character or string (as illustrated in the examples). When disabled, all tabs are replaced with spaces, regardless of their placement.

Basic Examples


Input

[tab]

Example 1: Replacement with 4 spaces. Leading tabs enabled.

[4 spaces]

In the first example above, the tab between the words "Hello" and "World" is ignored because the tab is preceded by the letter 'o'.

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

[space]

Notes


  • In the bottom left corner, you can monitor the count of tabs that have been replaced.
  • You can also use a tab within the text box.