n8n LabBeginner
Convert a String to Uppercase in n8n
Your shipping API expects uppercase country codes, but the form sends lowercase.
Live Execution Simulator
Idle
π₯
Incoming Data
βοΈ
n8n Node
π―
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.
Incoming Payload / Data:
{
"country": "ae"
}
$json.country.
βοΈ Your expression is executed against test data β any correct solution passes. +10 XP
β Solution & explanation
$json.country.toUpperCase()
Output: AE
toUpperCase() returns a new string with every letter in capitals. n8n expressions run JavaScript, so any string method works inside {{ }}.π‘ Pro tip: n8n also adds .toTitleCase() for names: $json.name.toTitleCase().