Files
n8n-docs/docs/data/data-filtering.md
Kartik Balasubramanian 96e6ba167d Revamp the data section of n8n docs (#4077)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-25 14:30:33 +00:00

2.1 KiB

contentType
contentType
howto

Filtering data

Filtering in n8n can mean different things depending on what you want to accomplish. This guide covers both visual filtering in the UI and data filtering during workflow execution.

Filter data visually in the UI

/// info | Feature availability Available on Community, Cloud Pro, and Enterprise plans. ///

Search and filter data in the node INPUT and OUTPUT panels. Use this to check your node's data and find specific items.

To search:

  1. In a node, select Search Search icon{.off-glb} in the INPUT or OUTPUT panel.
  2. Enter your search term.

n8n filters as you type, displaying the objects or rows containing the term.

Filtering is purely visual: n8n doesn't change or delete data. The filter resets when you close and reopen the node.

Filter data during workflow execution

To actually remove or filter data in your workflow, use these approaches:

Filter out items

To remove entire items from your workflow based on conditions, use the Filter node. This node evaluates conditions and only passes through items that meet your criteria.

Filter out fields

To remove specific fields from an item or object while keeping the item itself, use the Edit Fields (Set) node. Configure it to remove the fields you don't need.

Filter array elements

To filter elements within an array inside an item, use the .filter() method in an expression or Code node. For example:

{{ $json.myArray.filter(item => item.value > 10) }}

This removes array elements that don't match your condition while preserving the item structure.

Filter out duplicate items from previous executions

To remove items that have been seen in previous executions of a workflow, use the Remove Duplicates node. Use this when an event fires multiple times but you only want to process the first occurrence.