1001Ferramentas
🎵Utilities

Spotify URI Builder

Builds spotify: URIs and https://open.spotify.com URLs from a type (track/album/playlist) and ID.



  

Spotify URIs and web links from an ID

You copy a track link and get open.spotify.com/track/4iV5W9uYEdYUVa79Axb7Rh?si=a-long-tracking-blob. What you actually need for a deep link into the installed app, or for an API call, is the short spotify:track:ID form. Trimming that by hand, with two similar-looking formats and a tracking query sitting in the middle, is an easy place to copy the wrong thing.

Two fields, type and ID, and the output gives both forms on separate lines: spotify:track:ID first, https://open.spotify.com/track/ID second. The type field keeps lowercase letters only, and the filter deletes capitals instead of folding them, so typing Track returns rack and ruins the URI. Stick to track, album, playlist, artist, show or episode, all in lowercase.

The ID is the 22-character chunk between the type and the tracking query. Paste that alone, since the field drops slashes, dots and hyphens, and a full URL turns into nonsense. Use the first line when you want the installed app to open, and the second one in posts, newsletters and anywhere that needs a link preview or a browser fallback. Nothing leaves your browser; the page never talks to Spotify.

Frequently asked questions

Where do I find the ID?
Use Share and Copy link in the app or on the web. The ID sits right after /track/, /album/ or /playlist/ and ends where the question mark starts.
Why does typing Track break the output?
The type field keeps lowercase letters and deletes everything else rather than converting it, so the capital T is dropped and rack remains. Always type it lowercase.
Which of the two lines should I use?
The spotify: URI opens the installed app and is what APIs expect. The https URL works in any browser, renders previews in social posts and falls back to the web player.

Related Tools