Expand tabs to spaces or tabify spaces back, with column-aware stops at 2, 4 or 8 characters.
Pick direction, paste, copy.
Paste your text with tabs (or spaces to convert back).
Pick the direction and tab width — 2, 4 or 8.
The converted text updates live.
Copy the result into your editor.
Built for speed, privacy and reliability — on any device.
Expand tabs to spaces, or tabify runs of spaces back into tabs — one dropdown.
Tabs expand to the next multiple of the width — alignment stays perfect.
2, 4 or 8 characters — match your editor's settings.
Conversion runs locally — your text never leaves the browser.
No account, no limits.
Tabs move to the next tab stop (a multiple of the width). A tab at column 3 with width 4 becomes one space; at column 1 it becomes three.
Yes — "spaces to tabs" merges runs of spaces into tabs at the same width, keeping indentation compact.
No. Conversion runs entirely in your browser.
No installation is required. Tab to Spaces Converter runs directly in your web browser on any device — desktop, tablet or mobile.
The tool works in all modern browsers including Google Chrome, Mozilla Firefox, Microsoft Edge, Safari and Opera. We recommend keeping your browser up to date for the best experience.
Step-by-step guide with screenshots and tips.
Read guide →Step-by-step guide with screenshots and tips.
Read guide →Step-by-step guide with screenshots and tips.
Read guide →Step-by-step guide with screenshots and tips.
Read guide →