File Head and Tail Viewer
Shows the first and last lines of a file with their line numbers, and nothing in between.
Loading the tool…
How to use this tool
- Load the file with the picker below the box.
- Set how many lines you want from each end, and whether you want the top, the bottom or both.
- Select Show the ends.
- Turn line numbers off when you want to copy the lines out into another tool.
What file head and tail viewer does
The two ends of a file answer most first questions about it. The top tells you whether there is a header and what the columns are called; the bottom tells you whether the export finished or was cut off mid-record, and whether there is a trailer line that will break a parser. Everything between them is usually irrelevant to that first look, and on a large file it is what makes an editor unusable.
This is head and tail without a terminal. Choose how many lines, choose whether you want the top, the bottom or both, and the result shows exactly those with their real line numbers and a note of how many lines were skipped in the middle. Line numbers are on by default and can be turned off when you want to copy the content out cleanly. The file picker reads the file in your browser, so nothing is uploaded.