Home Tools Blog About

Keep the First Items of a List

In short

Keep only the first few items of a list and drop the rest, choosing how many to keep from the top.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up

Processed locally in your browser. Your text never leaves this tab.

🛡
100% PrivateNo server uploads, ever
InstantRuns in your browser
💧
No WatermarksClean output, always
🆓
Free ForeverNo accounts, no limits

How to Use Keep the First Items of a List

Keep the First Items of a List · free online tool · All Tools Verse
Keep the First Items of a List. Free online tool that runs in your browser.
  1. Paste your list. One item per line.
  2. Set how many to keep. Choose the number of items to keep from the top of the list.
  3. Keep the first items. Everything below the cut is dropped, leaving just the top of the list.
  4. Copy the result. Click Copy result. It all runs in your browser.

Frequently Asked Questions

What does keeping the first items do?

It is like the head command on a computer: it keeps the chosen number of items from the top of the list and drops the rest.

What if I ask for more items than the list has?

You get the whole list back unchanged, since there is nothing extra to drop.

Can I keep zero items?

Yes. Setting the number to zero returns an empty result, which can be handy when scripting.

Does it change the order of the items?

No. The items kept stay in their original order; only the ones past the cut are removed.

Is my list uploaded?

No. The trimming runs in your browser and your list never leaves the tab.

Keep going

Related Tools

All Text tools →

Add Bullets to List Item

Add bullet points to list items instantly. Choose from presets or use custom bullets.…

Add List Prefix - Prepend Text

Add List Prefix list items instantly. Bullets, numbers, arrows, checkboxes, or custom text. Free,…

Add Suffix to List Items

Add suffix to list items instantly. Periods, commas, punctuation, or custom text. Free, secure,…

Alphabetize List Sort Items Online | A-Z

Alphabetize list items instantly. Sort A-Z or Z-A, case-sensitive or not. Remove duplicates option.…

Append List Items - Merge Lists

Append and merge lists instantly. Combine multiple lists with duplicate removal. Free, secure, client-side…

Change List Length

Change List Length Truncate, pad, or cycle any list to a target length. Free,…

Change List Separator

Change List Separator and Convert list separators between newline, comma, tab, semicolon, pipe, and…

Chunk List Text

Split any list into fixed-size chunks with line/numbered/labeled/custom-separator output. Live preview, keep-or-drop trailing chunk.…

Colorized List Item

Colorized list item online. Turn any list text into a colour-coded HTML block with…

Convert List to Columns

Arrange list items into 2-10 monospace-aligned columns with horizontal or vertical fill. Free, offline,…

Convert List to Image

Turn a text list into a PNG or JPEG image with custom fonts, colors,…

Count List Items

Count list items with frequency analysis, duplicates, unique-only output, TSV export. Free, client-side, instant.

Share

Embed this tool

Add this free tool to your website. Copy and paste the code: