Line Range Extractor
Select or omit explicit 1-based line ranges, preserving source order.
Loading tool…
How to use Line Range Extractor
Copy selected intervals from a text block without manually selecting them. Numeric range syntax is parsed as data, never as a command or regular expression.
- Enter input, ranges, such as 2-4,7.
- Choose the settings for line range extractor, then run the tool.
- Review the result and any limitations before copying or downloading it.
Good to know
- At most 20,000 source lines and 100 ranges. Out-of-source numbers match nothing.
- Overlapping ranges do not duplicate lines; a trailing newline creates a final blank line.
- Processing is local. Output is limited to 1,000,000 text characters unless a stricter file limit is stated.
Common questions
Are lines indexed from zero?
No. The first line is line 1.
Is this input sent to a server?
No. The application processes this input inside your browser tab and does not save it to persistent storage.
Keep going with related tools
All text →Line Counter
Count total, non-empty, and blank lines in pasted text, including trailing line breaks.
TextAdd Line Numbers
Number a text block with a starting value, optional zero padding, and explicit blank-line handling.
TextWord Counter
Count words, visible characters, sentences, and lines locally, with Unicode-aware word boundaries.
TextCharacter Counter
Measure visible characters, Unicode code points, UTF-16 length, and UTF-8 bytes without uploading text.
TextCase Converter
Convert text to uppercase, lowercase, title case, or sentence case in your browser.
TextText Reverser
Reverse visible characters, word order, or line order while keeping emoji and combining accents intact.