Line Range Extractor
Paste any text, enter line ranges like "1-5, 10-15", and instantly extract those lines with a numbered gutter.
Use the Line Range Extractor
0 lines
Comma-separated ranges, 1-based. Examples: 1-5, 1-5, 10-15, 22-22
Extracted Lines
Paste text and enter ranges above, then click Extract Lines.
Copied!
Summary
Line Range Extractor lets you paste any block of text and pull out exactly the lines you need by specifying one or more numeric ranges. Ranges are 1-based and can be combined with commas — for example "1-5, 10-15, 22-22". The output panel shows every extracted line alongside its original line number so you always know where each line came from.
How it works
- Paste or type your text into the input panel on the left.
- Enter one or more line ranges in the range field (e.g. "1-3, 7-10").
- Click Extract Lines or press Enter — matching lines appear in the output panel with their original line numbers.
- Click Copy Output to copy the extracted lines to your clipboard.
- Use the Clear button to reset both panels and start over.
Use cases
- Pull a specific function or block out of a large log file.
- Extract header rows and a data sample from a CSV for quick review.
- Grab a subset of configuration lines to share with a colleague.
- Isolate error lines from a build log using known line numbers.
- Copy a code snippet at a known line range from a diff output.
- Quickly compare two non-contiguous sections of a document.
Frequently Asked Questions
Last updated: 2026-05-23 · Reviewed by Nham Vu