n8n LabBeginner
Clean and Lowercase Email Strings in n8n
Users often type their emails with accidental capital letters. Convert the incoming email string to all lowercase letters.
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:
{
"raw_email": "[email protected]"
}
$json.raw_email.
βοΈ Your expression is executed against test data β any correct solution passes. +10 XP
β Solution & explanation
$json.raw_email.toLowerCase()
Output: [email protected]
toLowerCase() is a standard JavaScript string method that converts every character to lowercase. Email addresses are case-insensitive, so normalizing them prevents duplicate contacts in your CRM.π‘ Pro tip: Chain .trim() to also remove accidental spaces: $json.raw_email.trim().toLowerCase().
Also accepted: trim().toLowerCase(), toLowerCase().trim()