REMOVE CHARACTERS FROM THE BEGINNING OR END =========================================== Remove characters from the beginning or end of each row. Use fixed-length text trimming to remove first characters, last characters, or both. Remove characters from the beginning or end of every row using a fixed count. Use it to strip consistent padding or fixed-length prefixes and suffixes from a pasted list. OVERVIEW & METADATA ------------------- Canonical URL: https://million.tools/remove-characters-from-start-or-end/ Markdown Copy (.md.txt): https://million.tools/remove-characters-from-start-or-end.md.txt Plain Text Copy (.txt): https://million.tools/remove-characters-from-start-or-end.txt API Endpoint: https://million.tools/api/v1/run/remove-characters-from-start-or-end (POST, Keyless, 60 req/min) SEO Title: Remove Characters from the Beginning or End Online Alternative Names: Trim Row Characters, Remove First or Last Characters, remove first characters, remove last characters, trim characters from lines, remove characters online Category: Remove (https://million.tools/remove/) Application Category: UtilitiesApplication Platform: Web (All modern desktop and mobile browsers, requires JavaScript) Price: Free ($0.00 USD, no registration or sign-up required) Live Calculation: Supported (Auto / Live toggle enabled by default) Usage Statistics: 1 use | 481 views Published: 2026-10-30 Last Updated: 2026-10-30 Author: Egor Volchenko (Developer & Author) KEY FEATURES ------------ - Remove a fixed number of characters from each row - Choose the beginning, end, or both ends - Keep remaining text in separate rows - Copy each result output - Clear text fields without resetting options PARAMETERS & INTERFACE CONTROLS ------------------------------- Input Parameters & Options: - delete_chars: Number. Number of characters - input_text: Insert list. - from_begin: Boolean. Remove characters in the beginning. - from_end: Boolean. Remove characters in the end. Output Fields & Metrics: - result: Result. Controls: Execute, Clear, Copy, Fill test data, Auto / Live INTERACTIVE EXAMPLE (TEST VECTOR) --------------------------------- Settings: - Remove characters in the beginning: Enabled Insert list: Apple Banana Cherry Result: ple nana erry HOW TO USE REMOVE CHARACTERS FROM THE BEGINNING OR END ------------------------------------------------------ Check that each row has the same unwanted prefix or suffix length before applying a fixed character count. Trim Row Characters: 1. Enter the source: Paste the rows into Insert list and set Number of characters to the count you want removed from each selected end. 2. Choose the settings: Select Remove characters in the beginning, Remove characters in the end, or both. The default removes two characters from the beginning. 3. Run the tool: Click Execute to process the current input. 4. Review the output: Read Result. When both directions are selected, the count applies independently to each end; a row with no characters left becomes empty. 5. Copy or clear: Click Copy under the output you want to keep. Use Clear where shown to clear the text fields; option selections stay as set. For AB123 and CD456, set Number of characters to 2 and select only Remove characters in the beginning. Result is 123 and 456. A fixed count is different from a marker: The tool removes a position-based number of characters regardless of their values. Use a symbol-based cut when prefix lengths vary but the same separator marks the boundary. Short rows can become empty: A count equal to or greater than the available row length can remove the whole row. Inspect short entries before copying the result, especially when trimming both ends. Trim the end or both ends: Select Remove characters in the end and clear Remove characters in the beginning to remove suffix characters. Select both to apply Number of characters to each end. FREQUENTLY ASKED QUESTIONS -------------------------- Q: Does the count apply to every row? A: Yes. Each selected end of every row is trimmed using the same count. Q: Can I remove characters from both ends? A: Yes. Select both direction checkboxes. A count of 2 removes two characters from each end, not two in total. Q: What happens if a row is shorter than the removal count? A: Its retained content can be empty. The tool does not add padding or preserve a minimum row length. Q: Does it remove a specific prefix wherever it appears? A: No. It removes characters by position. It does not search for a prefix or replace matching text inside a row. Q: Are the remaining rows joined together? A: No. The tool processes each row separately and preserves the row layout, including rows left empty by trimming. RELATED TOOLS ------------- - Remove Extra Spaces (https://million.tools/remove-extra-spaces/): Remove extra spaces and trim whitespace in each row. Remove double spaces, delete empty rows, or remove all spaces while retaining line breaks. - Remove Empty Lines (https://million.tools/remove-empty-lines/): Remove empty lines with a blank line remover. Delete empty rows and whitespace-only lines while keeping the remaining text in its original order. - Remove Text Before or After a Symbol (https://million.tools/remove-text-before-or-after-character/): Remove text before or after a symbol in each row. Use character-based text removal to trim text by delimiter while keeping rows without the symbol. - Remove Matching Rows (https://million.tools/remove-matching-rows/): Remove matching rows with a list subtraction tool. Subtract one list from another using whole-row matching, case sensitivity, or word-order matching. - Remove Rows with Stop Words (https://million.tools/remove-stop-words/): Remove rows with stop words using a stop word filter. Filter lines by keyword, review matching and nonmatching rows, and choose case-sensitive matching. ABOUT THE AUTHOR ---------------- Egor Volchenko — Developer & Author Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience. Links: x.com (https://x.com/egorleet) | github.com (https://github.com/egorleet) | t.me (https://t.me/egorleet) | instagram.com (https://www.instagram.com/egorleet) | facebook.com (https://www.facebook.com/egorleet/) | egorleet.blog (https://egorleet.blog/) | mastodon.social (https://mastodon.social/@egorleet) | twitch.tv (https://www.twitch.tv/egorvolchenko) | stackoverflow.com (https://stackoverflow.com/users/31679135/egor-volchenko) | reddit.com (https://www.reddit.com/user/Vegetable_Window9185/) | youtube.com (https://youtube.com/@egor-volchenko)