tdy / blog / clean amazon links

How to clean an Amazon link

Updated July 2026 · 3 min read
Short answer

Everything a product link needs is amazon.com/dp/ASIN — the 10-character product ID. The keywords, ref= breadcrumbs and query junk can go. Trim it by hand, or let tdy canonicalize every Amazon link you copy.

Anatomy of the monster

https://www.amazon.com/Sony-WH-1000XM5-Canceling-Headphones-Hands-Free/dp/B09XS7JWHH/ref=sr_1_3?crid=2M9…&keywords=headphones&qid=17198…&sprefix=headp…&sr=8-3
https://www.amazon.com/dp/B09XS7JWHH

Reading right to left: your search keywords, the exact query you typed (sprefix even keeps your typo), a session ID, and a ref= trail describing how you navigated. None of it selects the product — B09XS7JWHH, the ASIN, does that alone.

Why bother trimming

By hand

Find /dp/ followed by 10 characters, delete everything after those 10 characters, and everything between the domain and /dp/. Works — but it's fiddly on a phone-sized URL, every time.

Automatically

tdy's Canonicalize transform does this the moment you copy: any Amazon product URL (all the international storefronts too) collapses to its clean /dp/ASIN form, and YouTube gets the same treatment. It's a toggle — flip it off if you don't want it.

One honest note: trimming also drops affiliate tags (tag=…). If you're deliberately sharing an affiliate link, pause tdy for that copy — for every other link, that's the junk you wanted gone.

Product links that are just the product.

tdy canonicalizes Amazon & YouTube links and strips tracking from everything else. Native, one-time purchase, no subscription.

Get tdy for Mac

Related