Shift List Items

This tool shifts the position of each item in your list up or down by a specified amount. You can enable wrap-around to loop values that fall off the edge, and choose whether to trim or ignore empty lines. All changes are applied instantly with live output.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .json, .xml, .md, .ini, .yaml, .yml, .html, .htm, .css
Total items: 0
Options
Wrap around
Trim lines
Ignore empty lines

How to Use:

  1. Paste or import your list into the Input List box.
  2. Choose a shift amount (e.g., 2).
  3. Select direction:
    • Up: items move earlier in the list
    • Down: items move later in the list
  4. Use Options:
    • Wrap around: shifted items loop to the opposite end
    • Trim lines: removes extra whitespace
    • Ignore empty lines
  5. View the shifted result in the Shifted Output box.
  6. Use Copy Output or Export to File to save it.
  7. Press Clear All to reset the tool.

Example:

Input:

apple
banana
cherry
date
elderberry
fig
grape

Shift amount: 2Direction: DownWrap around: ON

Output:

fig
grape
apple
banana
cherry
date
elderberry

Common Use Cases:

Use this tool to rotate ordered lists like to-do tasks, playlist items, user queues, or cyclic schedules. It’s also great for rearranging lines in scripts, structured data, or repeating patterns without losing alignment.

Useful Tools & Suggestions:

If you’re shifting list items, Rotate a List is great for looping entries back around when they move past the end perfect for creating circular flows. And if you need to adjust how far each item shifts, Change the Length of a List can help you set the boundaries before shifting. It’s a smooth way to control sequence movement, reorder content, or simulate step-based progressions.