Extract First n Text Lines
web developer and programmer tools
World's simplest online Linux head command. Just paste your text in the form below, press Get First Lines button, and you get first n lines of the text. Press button, get lines. No ads, nonsense or garbage.
Announcement: We just launched Online Math Tools – a collection of utilities for solving math problems. Check it out!
How many lines?
Want to find last n lines of text?
Use the Tail Text Lines tool!
Want to find a line range?
Use the Line Range Extractor tool!
Looking for more programming tools? Try these!
Pro tip: You can use ?input=text query argument to pass text to tools.