Line Range Extractor
Paste any text, enter line ranges like "1-5, 10-15", and instantly extract those lines with a numbered gutter.
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
Paste any text, enter line ranges like "1-5, 10-15", and instantly extract those lines with a numbered gutter.
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-06-09 ·
Reviewed by Nham Vu