Skip to main content

Text & Lists

Head Text Processor

Transform text with Head and the selected rules. Enter the text, set the transformation rules, then copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Transform text with Head and the selected rules. Enter the text, set the transformation rules, then copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Head Text Processor returns the first selected number of delimiter-separated items, similar to a head command.

one two Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Choose the delimiter that defines each item.
  3. Set a positive Number for the leading items.
  4. Use a negative Number only when the operation's after-item behavior is required.

Example

Input: one two three

Settings: Head Text Processor: Use newline delimiter and Number 2.

Result: one two

Limits

  • Head Text Processor: A delimiter changes what the operation treats as a line or field.
  • Head Text Processor: Head does not sort or deduplicate returned items.
  • Head Text Processor: The operation runs in the browser and does not need a network service.