Text tools
Text Indent
Add, remove, or normalize leading spaces and tabs.
Processed in your browser
Prefix each included line with Count spaces or literal tabs. Existing indentation stays after them.
Editor text: CRLF and CR become LF. Downloads use UTF-8; no rich formatting is retained.
Choose your options, then apply indentation.
Result
How to use
- Paste or open text
Use the editor or choose a UTF-8 file. File contents appear after you apply.
- Choose indentation
Select an operation and spaces or tabs. Blank lines stay unchanged unless included.
- Apply and use
Copy or download the result. Use as input lets you build on the result.
Indentation rules and common questions
Spaces versus tabs
Spaces are literal U+0020 characters; tabs are U+0009. Add prefixes the selected character Count times. Remove deletes up to Count matching characters from the start, stopping at a different character. For example, removing two spaces from “space, tab, text” removes just the first space. Strip removes all leading spaces and tabs.
How does normalization work?
Tabs advance to the next multiple of Tab width, starting at column zero. Normalize to spaces expands those columns; normalize to tabs uses full tabs plus leftover spaces. For example, at width 4, a space followed by a tab becomes four spaces or one tab. Only leading indentation is normalized. The editor displays tabs at width 4 except while Normalize is selected.
What stays unchanged?
Letters, punctuation, emoji, combining marks, nonbreaking spaces and interior/trailing whitespace remain unchanged. Only a line’s leading ASCII spaces and tabs can change. Blank means a line containing only these characters (or nothing); blank lines are preserved by default. A final line ending does not create an extra line to indent. Empty input gives empty output.
Are file line endings and encoding preserved?
Files must be valid UTF-8, regardless of name or MIME type. Downloads preserve a leading UTF-8 BOM and every CRLF, LF, CR, Unicode line separator and paragraph separator. A BOM is kept before the first line’s indentation. Editing text or using the result as input switches to the browser editor, which normalizes CRLF and CR to LF. The displayed result also uses LF; download preserves the actual processed endings. Clipboard applications may adapt line endings.
Can I cancel or work with large text?
There is no fixed text-length or indentation cap. Counts must be whole, nonnegative safe integers; normalization needs a positive whole tab width. Browser string capacity and available memory limit results. Cancel stops processing and keeps your input; changing input or options clears the previous result. Reset clears text, selected file, options and download.
Does my text stay private?
Processing and file decoding run in your browser. This tool does not upload, log or persist your text or file. Copy writes to your clipboard and Download saves only when selected. Closing or leaving the page releases the tool’s text and download.