YouTube / Spotify Playlists Converter

Convert your music playlists between YouTube & Spotify with a single click.

These are versions of this script where the code was updated. Show all versions.

  • v4.8 22/11/2024

    Small fix to avoid an error if no result was found on YouTube

  • v4.7 10/11/2024

    Added conversion support for Liked/Saved Spotify playlist

  • v4.6 01/10/2024

    Fix fetching of the YouTube playlist title that prevents adding the playlist to Spotify

  • v4.5 07/08/2024

    Fix trustedTypes policy creation stopping the execution of the script.

  • v4.4 05/08/2024

    Fix error: "This document requires 'TrustedHTML' assignment"

  • v4.3 24/06/2024

    Fixes an error while fetching YouTube playlist content (YouTube changed the response structure).

  • v4.2 06/05/2024

    Some changes to improve accuracy

  • v4.1 08/04/2024

    Few changes to increase conversion accuracy and other minor fixes

  • v4.0 29/03/2024

    Granting open in tab permission

  • v3.9 29/03/2024

    Small change to YouTube token fetching

  • v3.8 29/03/2024

    Added a way to handle expired YouTube tokens

  • v3.7.2 27/03/2024

    Small fix to prevent an error when running multiple consecutive conversions

  • v3.7.1 27/03/2024

    Small fix to avoid cache setting error

  • v3.7 27/03/2024
    • Updated the system for getting YouTube tokens
    • Other code optimizations and fixes
  • v3.6 25/03/2024
    • Small changes to increase conversion accuracy
    • Fixes and code optimizations
  • v3.5 20/03/2024

    Expanded error messages

  • v3.4 18/03/2024

    Small update to increase conversion accuracy

  • v3.3 18/03/2024

    Small update to increase conversion accuracy

  • v3.2 16/03/2024

    Fix misnamed string that prevented the script from working correctly on YouTube Music

  • v3.1 15/03/2024

    Small fix to prevent multiple alert messages im the first-time autorun code

  • v3.0 15/03/2024

    Small fixes

  • v2.9 12/03/2024

    Small fixes

  • v2.8 11/03/2024
    • Added a message when some songs could not be found
    • Code optimizations
  • v2.7 08/03/2024

    Fix error while fetching long YouTube playlists

  • v2.6 08/03/2024

    Small fix to increase accuracy

  • v2.5 08/03/2024
    • Speed and accuracy improvements to 'YouTube to Spotify' conversion
    • Refactoring and code fixes
  • v2.4 02/03/2024

    Refactoring and small fixes

  • v2.3 28/02/2024

    Fixed error while adding songs to Spotify playlist, and other fixes

  • v2.2 26/02/2024

    Fixes and accuracy improvements

  • v2.0 23/02/2024
    • New feature: continue from last saved track if a conversion stops midway
    • Some refactoring and fixes
  • v1.8 19/02/2024

    Small fixes to improve accuracy

  • v1.7 19/02/2024

    Small fixes

  • v1.6 15/02/2024

    Small fixes

  • v1.5 12/02/2024
    • Replaced third-party APIs (Songlink and Invidious) with own algorithm (should result in faster and more accurate conversion).
    • Setting YouTube playlist to Unlisted or Public is no longer necessary.
  • v1.0 03/02/2024