Text Indenter (Add or Remove Indentation)
Text ToolsIndent or outdent every line by spaces or tabs
FreePrivateInstant
Similar tools you may like
History
All history →Text Indenter (Add or Remove Indentation) — at a glance
Shift a whole block of text to the right or left.
def hello():
print("Hi")
Apply
def hello():
print("Hi")
How to use it — step by step
Any multi-line text.
1
Add your text
Paste or type your input into the box. The Sample button fills in an example.
2
Choose the options
Pick the mode and settings you need. Results update when you run the tool again.
3
Press Apply
The result is made instantly inside your browser.
4
Copy the result
Use the Copy button, or send it to another tool.
Pro tips
Small things that make the result better.
✦Use 4 spaces to make a Markdown code block.
✦Outdent removes up to that many spaces, or one tab, from each line.
✦Empty lines are left alone by default.
Quick facts
Freeno signup
Privateruns in your browser
Instantresult in a second
No limituse it as often as you like
Frequently Asked Questions
Can I use tabs?+
Yes. Pick Tab as the indent character.
What does outdent do on lines with less indent?+
It removes whatever indent is there, up to your chosen amount.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Is this tool really free?+
Yes — completely free, no signup, no watermark and no usage limit.
More Free Tools
Guides you might like
All guides →Roman Numeral ConverterRoman numerals: how MCMXCIV adds up, and why 49 is XLIX, not ILMorse Code TranslatorMorse code: why E is a single dot and Q takes four signsCaesar Cipher & ROT13Caesar cipher: why only 25 keys means anyone can crack itReadability Score CheckerFlesch reading ease: what your readability score really means

