The text changes in this tab
Turn leading four-space groups into tabs
Only indentation at the start of a line is converted, in groups of four spaces.
A leftover one, two, or three spaces stay as spaces.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Spaces to tabs
The sample is fixed. It uses the same rule as the form.
- Input
- a
- Result
- a
How to use it
- 1Edit the text.
- 2Read the result beside it.
- 3Copy what you need.
Good to know
- Spaces in the middle of a line are not touched.
- 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?
Spaces in the middle of a line are not touched.
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 four spaces
Every tab character becomes four spaces.
- Replace tabs with two spaces
Every tab character becomes two spaces, wherever it sits.
- Remove the shared indent
The shortest indent on a non-empty line is removed from every line.