Indent List Items
Add indentation to all list items. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Add indentation to all list items.
Type or paste above to see the result here.
What you paste never leaves this tab
Indent List Items is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Indent List Items
- 1. Paste your list. Enter your items into the input pane, one per line. Any list you need pushed inward with consistent leading whitespace works here.
- 2. Pick the direction and the amount. Choose Indent to add whitespace or Outdent to take it back off, then tap 2 spaces, 4 spaces, 1 tab or 2 tabs in Indent by. Custom lets you type any Amount of spaces or tabs.
- 3. Decide whether to skip empty items. When indenting, turn on Skip empty list items so blank lines stay blank instead of picking up invisible whitespace. Show whitespace in the result draws the added spaces and tabs.
- 4. Copy the indented list. The output pane shows every item pushed in by the chosen amount. Copy the indented result into your document, notes or code file.
When to use Indent List Items
Indent List Items adds a consistent amount of leading whitespace to every entry in a list. Use Indent List Items whenever a flat list needs to be nested under something else, like a heading or a parent item, in a document or code file.
- Nesting sub-items under a heading in notes. A list of details needs to visually sit under a parent heading in a plain text note, and indenting each item makes the hierarchy clear without markdown formatting.
- Matching a code file's indentation style. A block of lines needs to be pasted into a code file at a nested indentation level, and indenting with tabs or a specific number of spaces matches that file's style.
- Formatting a nested outline for a document. An outline has a sub-level of points that should appear indented under the main points above them, which adding a consistent indent achieves in one pass.
- Preparing YAML-style indented list content. A configuration format like YAML requires consistent space-based indentation for nested list items, and setting the indent amount to match that convention avoids a formatting error later.
Examples
Indent by two spaces
Input
cats dogs
Output
cats dogs
Indent by four spaces
Input
cats dogs
Output
cats
dogsOutdent a nested list
Input
cats
dogsOutput
cats dogs
About the Indent List Items tool
Indent List Items is a free online tool that works entirely inside your web browser. Add indentation to all list items. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 114 List utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with 5 settings, including Direction, Indent by, Amount and Indent with, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.
Frequently asked questions
Is Indent List Items free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.