Slice Text

Free online text slicer. Extract a substring from text by start and end positions or indices.

Chars: 0 Words: 0 Lines: 0
Negative = from end (-1 is last)

About the Slice Text

Extract part of text by character, word or line indexes. The start index is included and the end index is excluded, following JavaScript slice behavior. Character indexes use UTF-16 code units, so some emoji occupy more than one position.

Features

  • Character, word and line modes
  • Exclusive end index
  • Live output

How to use this tool

The Slice Text works right in your browser — no signup, no installation. Follow these steps:

  1. Paste or type text to slice.
  2. Choose slice mode: characters, words, or lines.
  3. Set the start and end positions.
  4. Copy the sliced result.

Frequently asked questions

How does this tool work?

Extract part of text by character, word or line indexes. The start index is included and the end index is excluded, following JavaScript slice behavior. Character indexes use UTF-16 code units, so some emoji occupy more than one position.

Using the results

Bulk text edits that would take ages by hand happen in one step with the Slice Text. It applies your changes the moment you make them, entirely in the browser, so your content stays on your device and the result is ready to copy immediately.

Related Free Online Tools