About Text Head / Tail
Extract lines from the start (head) or end (tail) of a text — just like the Unix commands. Useful for previewing large datasets, log files, or any multi-line content. Runs entirely in your browser.
head and tail.
Extract lines from the start (head) or end (tail) of a text — just like the Unix commands. Useful for previewing large datasets, log files, or any multi-line content. Runs entirely in your browser.
Paste any text block, set N to the number of lines you want, and pick Head (first N) or Tail (last N). The tool splits on newlines, slices the array, and joins it back — exactly what Unix head and tail do, only without the command line and without uploading the file anywhere.
Useful for previewing the top of a CSV before importing, checking the last hundred lines of a build log, or trimming an oversized log paste before sharing it in a bug report. There is no maximum on N — request more lines than the input has and you'll just get the entire input back, with the actual line count shown in the summary row.
You get the entire input back. The summary row tells you the actual line count so you know whether N was the limiting factor.
Yes — line endings are detected and preserved on output. Windows-style CRLF and Unix LF inputs both round-trip correctly.
Not directly — you'd need to run head, copy the result, then run tail on the original separately. A combined mode is on the roadmap.
Use the Text Line Range tool for that — it lets you extract any contiguous range like lines 50–150.
Explore the full suite of TEXT tools and 290+ other free utilities at Chunky Munster.