CSV Tools

First N Rows

Extract the first N rows from your CSV

CSV Input

Try a sample:

Options

CSV Output

First N rows will appear here...

More Options

CSV Format

Input

How to Use This Tool

This tool keeps only the first few rows of your CSV file. Just set how many rows you need and the tool does the rest. It runs directly in your browser, so your data is never uploaded anywhere.

If your file has a header row, it will be kept at the top of the output automatically. The row count only applies to your data rows.

  1. Provide your CSV — Paste CSV text into the input area, drop a CSV file onto the File tab, or enter a URL on the URL tab.
  2. Set the row count — Enter how many rows you want to keep from the top. The default is 10. The tool shows the total number of rows in your file to help you decide.
  3. Get your output — Copy the result to your clipboard or save it as a .csv file.

FAQ

3 questions
Does this tool upload my data?
No. It runs entirely in your browser using JavaScript. Your CSV data is never sent to a server.
Does the header row count against the row count?
No. The header row is always preserved in the output and does not count against the row count. If you request 5 rows from a CSV with a header, you get the header plus 5 data rows.
Can I request more rows than my file has?
The row count is automatically limited to the number of rows in your file, so you'll always get a valid result.

More Row Operations Tools

9 tools

More CSV Tools

89 tools