Tabs to Spaces Converter

Make tabs explicitly visible as spaces in plain text.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use Tabs to Spaces Converter

  1. Paste your source text in the input box.
  2. Select Convert to generate the output.
  3. Review the output before copying it.

How it works

Make tabs explicitly visible as spaces in plain text. Replace each horizontal tab with four ordinary spaces.

Formula or processing rules

Replace each horizontal tab with four ordinary spaces.

Worked example

A tab between one and two becomes four spaces.

Example text lengths in UTF-16 code units
Input · 7
Output · 10
Worked example
MeasureValue
Source textone two
Resultone two

Pros and cons

Pros

Make tabs explicitly visible as spaces in plain text. The sample provides an immediate check of the expected output.

Cons

This applies a fixed four spaces for each tab, rather than calculating column-dependent tab stops.

Troubleshooting

Check the input format and compare your case with the built-in sample. This applies a fixed four spaces for each tab, rather than calculating column-dependent tab stops.

Frequently asked questions

How do I use the text I get back?

Copy the output into the document, list, or compatible tool where you need it.

How does the transformation work?

Replace each horizontal tab with four ordinary spaces.

Can I try a sample first?

A tab between one and two becomes four spaces.

What should I check before using the result?

This applies a fixed four spaces for each tab, rather than calculating column-dependent tab stops.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.