Skip to content
UniKit

List left remover

Delete the first N characters from every line of a line-based list — counted by Unicode code points so nothing is cut mid-character, lines shorter than N become empty and are dropped by default, with changed, removed and emptied counters.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

List

Result

One item per line, counted by Unicode code points, ready to copy.

Paste a list to delete the left N characters of each line

Lines: 0 · Changed: 0 · Characters removed: 0 · Emptied: 0

What this tool does

  • Strip a shared prefix an export added (X-, ID-, a number plus a space) so the rest becomes a usable key.
  • Remove a fixed number of leading spaces or tabs that came along when copying rows out of a spreadsheet.
  • Cut the first characters off log timestamps so only the part you compare stays.

Example

Input

ID-red
ID-green
ID-blue

Output

red
green
blue

With N = 3 the shared ID- prefix disappears and the bare values remain.

Frequently asked questions

Is this the same as “keep the right N characters”?

For lines longer than N the results are identical — both equal the substring from position N+1 to the end. They differ when N is longer than the line: this tool empties the line (and drops it by default) while the cutter keeps it whole.

How do negative positions work?

There are none. N must be an integer no smaller than 0 and a negative value is rejected instead of deleting from the right; use “remove right N characters” for that.

What if N is longer than the line?

The line becomes empty and is then dropped as a blank line; the “Emptied” counter tells you how many lines that happened to. Turn off “Drop blank lines” to keep those empty rows as placeholders.

How are Chinese characters counted?

One Chinese character is 1 and one emoji is 1 — counting walks Unicode code points, so no character is ever split in half.

Keywords:列表删除删除左边n个字符remove leftstrip prefix去掉前缀每行删除list remove删除行首字符

Related tools