n8n Lab
Extract Domain Name from URL using JavaScript in n8n
You have a full website URL and want to extract just the hostname (domain name).
Incoming Payload / Data:
{
"website": "https://app.workflowexercise.com/dashboard/"
}
new URL($json.website).
Pro Store
Ready-to-Use Make & n8n Blueprints
Stop building from scratch. Download production-ready automation templates, AI agent workflows, and JSON packs.
Explore Blueprints Store →Looking for another topic?
Use our interactive search drawer to filter exercises by Make.com or n8n.