Convert Tabs to Spaces
Tab-to-space conversion replaces tab characters with spaces so text looks the same in every editor. This tool replaces each tab, wherever it appears in a line, with four spaces or the number you set. It does not align columns to tab stops, so a tab that follows text always becomes the same number of spaces.
Copies a link to this tool with these settings. Your text is not in the link. The settings come after the #, which browsers don’t send to the server.
0 wordsNever uploaded
Convert Tabs to Spaces examples
| Case | Input | Output |
|---|---|---|
| Converts each tab to the default 4 spaces | indented text | indented text |
| With spaces per tab set to 2 | indented text | indented text |
How to use
Enter tab-indented text
Set the spaces per tab (4 by default); each tab becomes that many spaces
Get space-indented result