Text Indenter (Add or Remove Indentation)

Text Tools

Indent or outdent every line by spaces or tabs

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Amount
Character
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.

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.

You paste
def hello():
print("Hi")
Apply
Result
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