What is the Tabs to Spaces Converter?
Mixed tabs and spaces make code and text line up differently on every screen. Convert all tabs to spaces with the width you choose, or turn leading spaces back into tabs.
Features
Both directions
Tabs to spaces and spaces to tabs.
Tab width
2, 4, 8 or any width.
How to use the Tabs to Spaces Converter
- 1
Paste your code or text.
- 2
Pick the direction and width.
- 3
Copy the result.
Who it is for
Code
Match a project's style rules.
Tips for better results
- YAML files must use spaces, never tabs.
Questions people ask
Is it free?
Yes, free and private.
Which is better?
It depends on the project; most style guides for web code use spaces.