- Home
- Resources
- Integrations
- Rename Keys
n8n Rename Keys nodeConfigure Rename Keys in n8n.
Field names rarely match between two systems. The n8n Rename Keys node rewrites the keys of each incoming item so the next node finds the names it expects. Two parameters carry the whole job: a Keys list of before and after pairs, and an Additional Options collection that holds a Regex rule.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Rename Keys node actually do?
Rename Keys takes every item that reaches it and changes the name of the fields you list, leaving the values alone. A key is one side of a key-value pair, so {{ $json.first_name }} becomes {{ $json.firstName }} and the content stays exactly as it arrived. It runs on each incoming item and never starts a workflow on its own, so a trigger always sits in front of it.
The most common reason to reach for it is a naming clash. A spreadsheet exported from Google Sheets carries headers written by a human, with spaces and capitals, while the API waiting at the other end wants short lowercase names. One Rename Keys node in the middle, a pair of entries, and the mapping stops being a problem you rewrite in every downstream expression.
The second case is inbound payloads you do not control. A webhook, which is a URL an external service calls with a JSON body, hands you whatever shape that service uses. Rename it once at the top of the workflow and every branch after it can be written against names you chose. That matters most when a Switch node routes on a field: the routing rules stay readable because the field is called what the business calls it.
The third case is cleanup at scale. When a source prefixes dozens of columns the same way, listing each pair by hand gets tedious. The Regex option in Additional Options matches keys by pattern and rewrites them in one pass, which is the difference between two minutes of configuration and an afternoon of clicking.
Know what the node will not do. It changes names, never values, so anything that needs a computed or defaulted value belongs elsewhere, and Edit Fields (Set) is the node people reach for there. It also does not fetch anything: when the data has to come from an API that has no dedicated node, HTTP Request calls the endpoint first and Rename Keys tidies the result afterwards.
One habit saves debugging time. Regex can hit any key that matches the expression, including a key you renamed earlier in the same node, so a broad pattern combined with a long Keys list produces names nobody planned. Keep the pattern narrow, or split the work across two nodes. If you are still deciding whether n8n fits the way your team works, the n8n review covers that ground.
Which parameters does Rename Keys expose?
The Rename Keys node has 2 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Keys
keysWhat you see in n8n
Notes & use cases
This is the list of renames, entered pair by pair. Select Add new key and a new row appears, one per field. Anything you leave out keeps its name.
Key parameters
- Keys: the collection itself, opened with Add new key, one entry per field to rename.
- Current Key Name: the name the field carries today, such as
currentKey. Dot-notation reaches nested fields, as inlevel1.level2.currentKey. - New Key Name: the name it takes from here on, such as
newKey, with the same dot-notation,level1.level2.newKey.
cust_email while the mailing step expects email, and one pair fixes every item in the batch.Additional Options
additionalOptionsWhat you see in n8n
Notes & use cases
Leave this collection closed and Rename Keys does nothing beyond the pairs above. Open it with Add option when naming follows a pattern rather than a fixed list.
Key parameters
- Regex: added with Add new regular expression, it selects keys by pattern instead of by name.
- Regular Expression and Replace With: the pattern that identifies the keys, and the new name given to every key it matches.
- Case Insensitive: off, the pattern respects capitals; on, it ignores them.
- Max Depth: how deep the replacement goes,
-1for unlimited and0for top level only.
Need help automating Rename Keys with n8n?
A person reads every message.
Questions people ask about Rename Keys
01Is Rename Keys included in n8n, on Cloud and self-hosted?
02What credentials does the Rename Keys node need?
03What are the limits of the n8n Rename Keys node?
04When should you use Rename Keys instead of another node?
05n8n or Make for renaming fields in a workflow?
Get our weekly integration tips.
No spam. Unsubscribe anytime.

