Hongmu Notes

2️⃣ Text filter even lines

Paste the text and take out the even-numbered lines by line number (lines 2, 4, 6…).

Text filter even lines

Instructions for use

  • Paste multiple lines of text and click "Start Processing" to extract even-numbered lines by line number.
  • If you want to get the other half, please use the "Text Filter Odd Lines" tool
  • All is done locally in the browser, and the input content will not be uploaded.

Text odd and even line splitting

Sometimes it is necessary to divide a text into two halves and process them separately (for example, two groups of people each manage half of the list). Splitting on odd and even lines is the simplest half-and-half solution.

📌 How to complete splitting in one operation

This page takes even-numbered lines, and the supporting "Text Filter Odd-Numbered Lines" takes odd-numbered lines; first copy the even-numbered lines and save them, then switch to the odd-numbered lines tool to process the same original text once, and the two copies combined become the complete original text.

🧭 What scenarios are it commonly used in?

Splitting a text into two parts based on line numbers, sampling from a large text at fixed intervals, and checking whether the exported two columns of data are aligned row by row, all use alternate row sampling. This page takes even-numbered rows, and a copy of "Get odd-numbered rows" can be completely split. The sum of the number of rows in the two results should be equal to the number of rows in the original text, which can be used to check whether there are any missing rows.

🔒 Dealing with location and privacy

The filtering is only done in the browser, and the text is not uploaded to the server or written to local storage; logs and lists are sensitive data, and this tool does not collect or retain them. It can also be used in offline environments. After processing, refresh the page and the content will be cleared.

All keywords and tutorials 12

❓ FAQ

Will the number of rows in the two copies be exactly equal?
When the number of lines in the original text is an even number, the two copies are equal; when the number of lines in the original text is an odd number, the odd-numbered lines will have one more line.
Will splitting change the row content?
No. The results on both sides are output as-is.
How to restore the original text after odd-even splitting
Just splice alternately in the order of "odd rows, even rows, odd rows, even rows...".