Code Indentation Tool
Re-indent code using a configurable number of spaces or tabs.
Paste your code and choose your target indentation (spaces or tabs, and how many) - this tool re-indents it consistently.
This adjusts indentation width/style only - it does not re-parse or validate the code's syntax for any specific language.
What Does This Tool Do?
It detects each line's current indentation level and re-applies it using your chosen indentation style (a specific number of spaces, or tabs) - a simple, language-agnostic way to normalize indentation.
Why Use This Tool?
Team members using different editor settings (tabs vs. spaces, 2 vs. 4 spaces) produce inconsistently-indented files - this tool normalizes a whole file to one consistent style in one pass.
How to Use It
- Paste your code.
- Choose spaces (and how many) or tabs.
- Copy the re-indented result.
Limitations
This works on relative indentation levels detected from your input - it doesn't validate or understand the syntax of any particular programming language.