Converting VGZ to VGM

Posted July 20, 2020

This tutorial is most likely not compatible with versions of SGDK above 1.70. Unfortunately, I simply do not have the capacity or ability to update them right now. Read more about it here. Sorry.

Hold up!

If you like 90s platformers, check out my new game Kid Bubblegum!

It’s rather simple to import and play music in your game using SGDK, as I’ve explained previously. However, one of the things you have to keep in mind is that SGDK only supports files in the format of VGM, XGM or XGC. No problem, right? Well…when you look around the web you’ll see that many Mega Drive music files are actually in VGZ format. That’s a bit of an issue, because SGDK doesn’t know how to deal with those. But there’s a trick to convert VGZ to VGM files, which SGDK can process happily!

I’m going to show you how to convert these files and it doesn’t even require audio software or anything. And that has to do with the fact that VGZ files are in fact VGM files! Kind of.

VGM is pretty much the default music format for a lot of retro game systems nowadays, and when you compose your own chiptunes you’re usually exporting them as VGM files. But when these files are distributed online, they are often compressed using gzip. This would give these files a file extension of track.vgm.gz. However, since file extensions with periods in them can sometimes cause problems, the extension .vgz is used instead.

So what does it all mean? This: A .vgz file is just a compressed .vgm file, and by uncompressing it we can get back the original .vgm file for use in our SGDK projects!

How To Convert VGZ to VGM

It’s a simple two step process:

  1. Rename the .vgz extension of your desired file to .vgm.gz, so that you end up with a filename like track1.vgm.gz.
  2. Open the renamed file in your favorite file archiver program (Winrar, Winzip, 7zip…) and extract the .vgm file contained within.

And that’s it! Now you can easily turn all those VGZ files into regular old VGM files. I guess it’s not even really a conversion, but it’s a neat trick that I only found out about recently myself, so I wanted to share it!

If you've got problems or questions, join the official SGDK Discord! It's full of people a lot smarter and skilled than me. Of course you're also welcome to just hang out and have fun!

Join my Discord Server!

Hang out, get news, be excellent!

Come hang out!

Want To Buy Me a Coffee?

Coffee rules, and it keeps me going! I'll take beer too, though.

Check out the rest of this tutorial series!

  • Creating Graphics for the Mega Drive
  • How to Quickly Generate C Prototype Functions in VSCode
  • Color Swapping
  • 4 Programs For Creating Mega Drive Graphics
  • Editing the Rom Header
  • Simple Game States
  • Creating a Simple Menu
  • Changing The Text Color in SGDK
  • Playing Music in SGDK
  • Converting VGZ to VGM
  • Processing Resets
  • Drawing Tiles From Code
  • Make a Text Crawl, Streets of Rage Style
  • Scrolling Maps
  • Placing Tiles
  • Simple Animated Tiles in SGDK
  • Simple Password System
  • Checking the Region
  • Playing Multiple Music Tracks
  • By using the Disqus service you confirm that you have read and agreed to the privacy policy.

    comments powered by Disqus