Extract last word
Get the last word from each line of text.
Extract last word
Extract the last word from every line of your text with a single click. This tool is useful when you need to isolate the final term from each line, whether you're processing data, cleaning logs, parsing files, or extracting keywords. Simply paste your text and the last word of each line is separated and displayed instantly.
The tool processes one line at a time, preserving the order and skipping any empty lines. It handles all kinds of whitespace — spaces, tabs, and mixed spacing between words — treating them all uniformly. Each line is trimmed before processing, so leading and trailing spaces don't affect which word is considered "last". The output shows only the extracted words, one per line, making it easy to copy, download, or send to another tool.
Everything runs entirely in your browser, so your text stays private and never leaves your device. The live tally shows how many lines were processed and how many words were extracted. This is especially useful when working with structured data, CSV files, log entries, or any text where the final column or term matters.