# Remove Text Before or After a Symbol > 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 text before or after a symbol** in every row of a list. This is useful for keeping one part of consistently separated labels or codes without manually editing each entry. ## Overview & Metadata - **Canonical URL:** https://million.tools/remove-text-before-or-after-character/ - **Markdown Copy (.md.txt):** https://million.tools/remove-text-before-or-after-character.md.txt - **Plain Text Copy (.txt):** https://million.tools/remove-text-before-or-after-character.txt - **API Endpoint:** https://million.tools/api/v1/run/remove-text-before-or-after-character (POST, Keyless, 60 req/min) - **SEO Title:** Remove Text Before or After a Symbol Online - **Alternative Names:** Trim Text by Symbol, Remove Text Around a Character, remove text before a character, remove text after a character, trim text by delimiter, remove text after symbol - **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:** 14 uses · 534 views - **Published:** 2026-10-30 - **Last Updated:** 2026-10-30 - **Author:** Egor Volchenko (Developer & Author) ## Key Features - Use one literal character as a cut marker - Remove text before the first marker - Remove text after the last marker - Leave rows without the marker unchanged - Copy each result output - Clear text fields without resetting options ## Parameters & Interface Controls ### Input Parameters & Options - `char`: Symbol. - `input_text`: Insert list. - `before_char`: Boolean. Remove before. - `after_char`: Boolean. Remove after. ### Output Fields & Metrics - `result`: Result. - **Controls:** `Execute`, `Clear`, `Copy`, `Fill test data`, `Auto / Live` ## Interactive Example (Test Vector) **Settings:** - Symbol: `:` - Remove before: `Enabled` - Remove after: `Enabled` **Insert list:** ```text a:b:c plain ``` **Result:** ```text b plain ``` ## How to use Remove Text Before or After a Symbol Choose the marker and cutting direction that keep the part of each row you need. ### Trim Text by Symbol 1. **Enter the source:** Paste one entry per row into *Insert list*. Replace the value in *Symbol* with the single character that marks the cut point. 2. **Choose the settings:** Select *Remove before* to keep text after the first occurrence. Select *Remove after* to keep text before the last occurrence. Enable only the directions you need. 3. **Run the tool:** Click *Execute* to process the current input. 4. **Review the output:** Read *Result* and inspect a few rows with repeated symbols. A row without the chosen symbol remains unchanged. 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 `red:apple` and `plain`, set Symbol to `:` and keep only Remove after selected. Result is `red` and `plain`. ### The matching symbol is excluded The symbol at the cut point is removed along with the selected side. Matching is literal and case-sensitive; a character that looks similar may still be a different Unicode character. ### Repeated symbols change the cut point Remove before uses the first occurrence, while Remove after uses the last. When both are enabled, the before operation runs first and the after operation works on what remains. ### Keep text after the marker To keep the right-hand portion, select *Remove before* and clear *Remove after*. With a colon as *Symbol*, red:apple becomes apple. ## Frequently asked questions ### Is the symbol itself kept? No. The occurrence used as the cut point is excluded from the retained text. ### Which occurrence is used when the symbol repeats? Remove before cuts after the first occurrence. Remove after cuts before the last occurrence in the current row. ### Can I enable both directions? Yes. Remove before runs first, followed by Remove after on the remaining text. For a:b:c with a colon marker, both options leave b. ### What happens to a row without the symbol? It remains unchanged. The tool does not remove a final character merely because a marker is missing. ### Why does the default a-shaped symbol not match Latin a? The configured default is Cyrillic small letter а, a different character from Latin a. Replace it explicitly with the symbol used in your text. ## 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 Characters from the Beginning or End](https://million.tools/remove-characters-from-start-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 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)