Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rename Keys

core.rename_keys · version 1 · Transform

Rename fields on every item.

Ports

PortKindLabelRequiredMax connections
input 0main
output 0main

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
keysfixed_collection
keys.currentKeystringyesCurrent Name. Field to rename; a.b addresses nested fields.
keys.newKeystringyesNew Name.
additionalOptionscollectionOptions.
additionalOptions.regexReplacementfixed_collectionPattern Rename.
additionalOptions.regexReplacement.searchRegexstringPattern. Regular expression matched against each key.
additionalOptions.regexReplacement.replaceRegexstringReplace With. Replacement; $1 inserts the first captured group.
additionalOptions.regexReplacement.optionscollection
additionalOptions.regexReplacement.options.caseInsensitivebooleanfalseIgnore Case.
additionalOptions.regexReplacement.options.depthnumber-1-1 renames at every level, 0 only top-level keys.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.renameKeys1unverified