Your source for even shorter Amazon links.
Enter an Amazon ASIN (e.g. B000VWEFP8) or an ISBN-10 (e.g. 0881791326) and use the ASIN.cc link.
Follow @asindotcc for status updates.
Create ASIN shortlinks from your browser
Drag this link:
to your browser's links toolbar and then create ASIN.cc shortlinks directly from Amazon.com pages you're viewing by clicking it in your toolbar.
ASIN.cc shortlinks are computed rather than stuck in a fragile opaque database (what typical generic URL shorteners do). Computed shortlinks are superior because anyone (e.g. browsers, other applications, sites) can programmatically determine where they go. Computed shortlinks are thus more robust, being inherently repairable by inspection, while database shortlinks break irreparably when their site is down.
Given an ASIN.cc shortlink path p (the part of an ASIN.cc URL after the last slash "/"), here is how you convert it to an ASIN (including ISBN-10) :
- if p starts with a "~", convert the portion after from New Base 60 sexagesimal to decimal, left-pad with 0s to nine digits, compute and append the ISBN-10 final checksum digit.
- otherwise if p is less than eight characters, convert it from New Base 60 sexagesimal to conventional alphanumeric hexatridecimal, left-pad it with 0s to nine digits, and prepend the letter "B".
- otherwise if it has dashes, filter them out, and use the result directly as an ISBN.
- otherwise treat p directly as an ASIN.