Shift Elements in a List with Precision
Shifts every item by a given number of positions, wrapping around both ends so nothing is lost. Left shifts move the first items to the back; right shifts move the last items to the front.
Duplicates and blank lines are preserved in place; their relative order is kept intact across the shift.
Everything runs in your browser - no upload, no sign-up.
How to use shift elements in a list
- 1Select the direction from the 'Direction' option
- 2Enter the number of positions to shift in the 'By' field
- 3Observe the live output as you type
- 4Copy the result when satisfied
- 5Hit Download to save as a plain text file
Keyboard shortcuts
Drive ListShift without touching the mouse.
What shift elements lets you do
Explore the potential of shifting list items.
Reorder task lists
Use 'Shift Elements' to reorder tasks in a to-do list. Set the 'Direction' to move tasks up or down the list.
Organize shopping lists
Shift items in your shopping list to prioritize purchases. Adjust the 'By' value to customize the order.
Adjust playlist sequences
Modify the order of songs in a playlist by shifting their positions. This tool makes it easy to experiment with different sequences.
Manage project stages
Shift project stages in a list to reflect changing priorities. Select the direction to move stages forward or backward.
Fine-tune study schedules
Reorder study sessions in a schedule to optimize learning. Use the 'Shift Elements' feature to adjust as needed.
Worked example
An example of shifting elements in a simple task list.
Task 1 Task 2 Task 3 Task 4
Task 2 Task 3 Task 4 Task 1
Settings reference
Understand how each option affects the output using the example above.
| Setting | What it does | Effect on the sample |
|---|---|---|
| Direction: right | Shifts elements to the right | Task 4 moves to the top |
| Direction: left | Shifts elements to the left | Task 1 moves to the end |
| By: 1 | Shifts elements by one position | Each task moves one step |
| By: 2 | Shifts elements by two positions | Each task moves two steps |
| Direction: left, By: 1 | Combines settings to shift left by one | Task 1 moves to the end |