Extract Last Word Each Line
Paste multi-line text and return the last word found on every line, preserving line structure.
Unicode letters and numbers form words. Punctuation and whitespace around the last word are excluded; empty lines stay empty.
A QUICK WALKTHROUGH
How to use this tool
- Enter up to 100,000 characters.
- Extract the last word from each line.
- Copy or download the result.
Unicode word tokens
Each line returns its last contiguous run of Unicode letters or numbers. Combining marks attached to a letter remain part of that token. Punctuation, symbols, and whitespace after the token are excluded.
Lines and empty input
LF, CRLF, and CR line endings are recognized and reproduced as LF-separated output lines. Empty and whitespace-only lines produce empty output lines, and an input ending with a line break keeps that final empty line. Processing stays in this browser.
GOOD TO KNOW
Common questions
What counts as a word?
A word is a contiguous run of Unicode letters and numbers, with combining marks attached to it.
Are punctuation and spaces included?
No. They are excluded around the last word.
What happens on an empty line?
It produces an empty output line so the line structure is preserved.