Copy an inclusive line range
Extract one inclusive range of numbered text lines without rearranging them. Paste your source and enter First line (inclusive) and Last line (inclusive), then choose Process text. Results can be copied or downloaded. The tool retains the input so you can compare before replacing any source. Changing a setting or input clears the previous result and download.
Work through the example
Load the example. Set First line to 2 and Last line to 3 to extract beta and gamma. The default range 1–1 extracts just alpha. The example action replaces input and settings. Keep any important original separately before using it.
Matching and transformation rules
Line numbers begin at one. Both endpoints are included. Blank lines count; a trailing newline does not create a phantom last line. Endpoints must be whole numbers within the input and the last must not precede the first. Out-of-range selections produce an error instead of silently truncating. Only one contiguous range is supported; use separate runs for disjoint regions. Source ordering is retained.
The algorithm retains the line terminators it receives for each output line. Browser textareas can normalize pasted CRLF or CR to LF before processing, so this is not a byte-preserving file editor. Retain the original file if its encoding or exact line-ending bytes matter.
Limits and troubleshooting
Each text input supports 100,000 UTF-16 code units. Empty input is rejected; whitespace-only lines remain meaningful and count toward the selected range or transformation. No disk file is modified and a page reload discards the current state.
Use Line Number Adder on a separate copy to identify the desired line positions. Use Text Line Filter when content, rather than line position, determines which lines to keep.





