BandCamp has a artist/label feature that allows fans to redeem download codes for free music (pretty cool). In order to redeem a code, fans need to visit a page on the artist’s BandCamp site ( But what if you wanted your fans to redeem the codes from your website instead of sending them straight to BandCamp? Well, there is a way to do that.

Copy/paste the code below into your website to add the form. Be sure to change ARTIST_NAME to the actual artist name as it appears in your BandCamp URL. Here is an example of the code in action on my website.

<form class="download-code-form" action="" method="get" target="_blank">
    <input name="code" type="text" placeholder="e.g. lanz-gh9h" aria-label="code" /> 
    <input type="submit" value="Redeem Code" />

Did You Find This Helpful?

Join my biweekly digest of curated HTML, CSS and JavaScript news.

Matt Litzinger headshot

Matt Litzinger

Matt is a New Hampshire-based web developer focused on UX and digital accessibility.