The text changes in this tab
Replace tabs with four spaces
Every tab character becomes four spaces.
Two-space indents that are already spaces are not expanded.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Tabs to four spaces
The sample is fixed. It uses the same rule as the form.
- Input
- a b
- Result
- a b
How to use it
- 1Edit the text.
- 2Read the result beside it.
- 3Copy what you need.
Good to know
- Use the two-space page if that is the width you want.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Use the two-space page if that is the width you want.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Replace tabs with two spaces
Every tab character becomes two spaces, wherever it sits.
- Turn leading four-space groups into tabs
Only indentation at the start of a line is converted, in groups of four spaces.
- Remove the shared indent
The shortest indent on a non-empty line is removed from every line.