Tail — Last N Lines

Keep just the last N lines of your text — like `tail -n`. Choose the count, skip trailing lines, and optionally number each line. Runs entirely in your browser, no server, no sign-up.

Last lines

About this tool

Tail keeps just the last lines of whatever text you paste — the same thing the Unix tail -n command does, but in your browser with no install. Paste a log, a CSV, a giant export, or any block of text and instantly get back only the bottom rows.

What you can do

Windows line endings (CRLF) and a trailing newline are preserved, so the tail of a file keeps its original structure.

Private by design

Everything runs locally in your browser via WebAssembly. Your text is never uploaded to a server — there's nothing to sign up for and nothing leaves your machine.

FAQ

How do "skip" and "count" interact?

Skip is applied first: the last skip lines are dropped from the end, then the last count lines of what remains are kept. So count=10, skip=1 gives you rows 11-through-2 from the bottom — perfect for ignoring a totals/footer row.

What do the line numbers refer to when numbering is on?

Each kept line is prefixed with its 1-based position in the original text (plus a tab), not a fresh 1..N sequence. If your input had 500 lines and you keep the last 10, they're numbered 491-500, so you can locate them in the source file.

Is there a maximum line count?

Count is clamped to the range 1 to 1,000,000. Asking for more lines than the text contains simply returns the whole text — no error, same as tail -n on a short file.

Does it mangle Windows (CRLF) files or the trailing newline?

No — CRLF endings are preserved on each line, and a final newline is kept only if the original input ended with one, so the tail is byte-faithful to the source.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool tail-lines "line 1
line 2
line 3
..."

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/tail-lines/?text=line%201%0Aline%202%0Aline%203%0A...&count=10&skip=0&number=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.