Code
\tconst a = 1
2 spaces
const a = 1
Developer Tools
Convert leading indentation between tabs and spaces locally in your browser, with a configurable space width. Useful when aligning team style or migrating IDE defaults.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
开发工具
等待输入
Code
\tconst a = 1
2 spaces
const a = 1
Yes. It only processes consecutive leading tabs or spaces, not whitespace inside string literals.
It normalizes leading whitespace by the selected rule. Inspect mixed rows first if alignment is critical.
Tools
Continue with another translated tool for a nearby task.
Line Ending Converter
Convert text line endings among LF, CRLF, and CR locally in your browser, and summarize the current mix. Useful for Git, scripts, and cross-platform files.
Trim Whitespace
Trim leading and trailing whitespace from whole text or each line, with modes for both ends, leading only, or trailing only. Useful for pasted tables and cleaned lists.
Text Diff Checker
Compare two text blocks locally in your browser and mark added, removed, and unchanged lines. Useful for configs, copy review, and quick code-snippet diffs with instant results.