About the Trim Characters from Lines
Lists often come with prefixes or suffixes of a fixed length: item codes like “001-”, dates at the start of log lines or file extensions at the end. Enter how many characters to remove from the start and from the end, and every line is trimmed the same way.
Characters are counted as you see them, so emoji and accented letters count as one.
How to use the Trim Characters from Lines
- Paste your list.
- Enter characters to remove from the start and end.
- Copy the trimmed lines.
Features
- Continue with…: send the result straight into a related tool, no copy and paste
- Trim from start and end
- Unicode-aware
- Works on long lists
- Live output
Supported formats
- Plain text
Frequently asked questions
What if prefixes have different lengths?
Use Find and Replace with a regular expression, or Remove Line Numbers for numbering.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools