The tool’s interface below is still in French. The interface is being translated by Google Translate.
n8n expression builder
Paste sample data, click a field and add a transformation: the expression is ready to paste, with its result.
Champs
Expressions utiles
How to use the n8n expression builder
n8n expressions built by clicking on your data, with transformations and a preview of the result.
-
Paste a sample
The data of one item.
-
Click a field
And choose the reference.
-
Add a transformation
Then copy the expression.
About the n8n expression builder
n8n expressions are JavaScript placed between double curly braces. $json reads the current item, $('Node name') reads the data of another node, and the Luxon library (DateTime, $now) handles dates.
The preview evaluates the expression on your sample data. n8n-specific variables ($now, $execution, $vars) can only be evaluated inside n8n.
Frequently asked questions about the n8n expression builder
What is the difference between .item and .first()?
.item returns the item linked to the current item (n8n tracks the matching automatically), while .first() returns the first output item of the node.
How do I avoid an error when a field is missing?
Use optional chaining and a default value, for example $json.email?.toLowerCase() ?? ''.
Do I need an n8n account?
Not to use the tool. You then paste the result into your own n8n instance, self-hosted or n8n Cloud.
Is the tool free?
Yes, it is completely free and needs no sign-up.