Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a FLAC file and a CUE file. Using the command line, I would like to split this file, with one track per file.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I found this question, however this is for Linux. I went looking for shnsplit and found shntool. It only supports WAV out of the box, however you can download FLAC for FLAC support. I found a newer version than what is advertised on the shntool page.

Using examples from

I was able to construct this command

shntool split -f infile.cue -t %n-%t -m /- -o flac infile.flac


share|improve this answer
Steven, please consider leaving comment threads intact. I've often noticed you deleting comments that might be obsolete, and then flagging the others. This is okay if all the information was edited into the post, but there's no harm done from leaving the comments here stay, and there's nothing offensive about @Karan's comment either. Thank you. – slhck Apr 22 '13 at 8:10

The most popular and robust software for doing this on Windows is CUETools, which is free. It's primarily a GUI app, and it can't easily be configured from the command line, but it does have a command-line interface you can use to invoke the conversion with settings that were established in the GUI.

In the GUI, choose the "convert" profile (chooser is in the upper left corner). Take note of the Template in the CUE Paths section; this defines where the new files will go. If the Action section isn't greyed out, make sure it's on Encode, with the "default" script selected. In the Mode section, choose Tracks, and uncheck the AccurateRip box, unless you want it to verify before converting. Set the Audio Output to what type of audio files you want. In the Advanced Settings (gear icon in upper right corner), CUETools tab, Gaps handling, choose either Gaps Appended or Gaps Appended + HTOA, depending on whether you want any audio that comes before track 01 to be saved to a separate file or discarded (normally it'll just be a split-second of silence).

Now close the GUI; your settings are saved automatically. On the command line, you can now run it with those settings:

CUETools /convert infile.cue

The command will exit immediately, and a small GUI window will open to show you the progress and any error messages. This window will remain open until you click its close button. If all goes well, CUETools will write the converted audio file(s) and a converted cue sheet to a new folder. This cue sheet conversion is the main advantage over using shntool; the new .cue file will reference the split audio files. CUETools will also copy the .log file (if any) to the new folder.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.