Input & Output: Type, paste, upload, or drop your text into the "Input" field. The indented result is written to the "Output" field, ready to copy or download.
Space: Adds a chosen number of ordinary spaces to the front of each line. For example, 3 spaces:
alpha
beta
gamma
Tab: Adds one or more tab characters to the front of each line. Tabs are the usual choice for indenting code because they are easy to remove and to align. Two tabs on these lines:
alpha
beta
gamma
Custom: Adds any exact text you choose to the front of each line. Use "- " for a bulleted list, "> " for an email quote, or "• " for a simple bullet dot. For example, "> ":
> alpha
> beta
> gamma
Repeat count: (Space and Tab only) Sets how many spaces or tabs to add, from 0 to 100. A setting of 0 leaves the line unchanged.
Skip empty lines: When on (off by default), blank lines and whitespace-only lines are left untouched. Input:
alpha
beta
With Skip empty lines on:
alpha
beta
Preserve existing indent: When off (the default), the new indent is added after any leading spaces or tabs the line already has are removed, so the existing indentation is replaced. When on, the new indent is added in front of whatever indentation the line already has, stacking the two. For example, adding 2 spaces to a line that already starts with 4:
alpha
With Preserve existing indent off:
alpha
With Preserve existing indent on:
alpha
Trim trailing whitespace: When on, spaces or tabs at the end of each line are removed before the new indent is added. This cleans up the ragged right edge that often appears when text is copied from a document.
Load an example: Loads a sample text with pre-configured settings so you can see the tool in action immediately.
Copy & Download: "Copy" puts the output on your clipboard; "Download" saves it as a text file.