Slice Text Online by Characters, Words, or Regex

This text slice tool lets you extract specific parts of your text by choosing character range, word count, line numbers, or custom regex patterns. You can enable line-by-line slicing or reverse the sliced output based on your needs. Whether you're working with plain text files, cleaning up content, or preparing structured input, this tool helps you slice text online with full control and zero hassle.

Input Text

Slice Text Options
Additional Options

Output

Examples of Text Slicing

1. Slice by Character Range

Scenario: You want to extract a portion of text from the 5th to 15th character.

Input: The quick brown fox jumps over

Option: Slice from character 5 to 15

Output: quick brown

2. Slice by Word Range

Scenario: You want to extract the first three words from a sentence.

Input: The quick brown fox jumps over the lazy dog

Option: Slice from word 1 to 3

Output: The quick brown

3. Slice Line-by-Line

Scenario: You want to extract the first 4 characters from each line of text.

Input:
Hello world
Open source tools
Built for speed

Option: Character Range: 1 to 4 and ✔ Line-by-Line Slicing

Output:
Hell
Open
Buil

4. Slice by Pattern (Regex)

Scenario: You want to extract all email addresses from a paragraph.

Input: Contact us at support@example.com or admin@site.org for help.

Option: Regex: \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b

Output: support@example.com, admin@site.org


Related Text Tools