Cue Sheet Splitter
Operator: Abdulla Al Fahad. How tools are built and checked
A ripped CD often arrives as one long file and a small text file that says where the tracks start. That text file is a CUE sheet, and splitting the audio from it is mostly a matter of reading its times correctly: minutes, seconds and frames at 75 frames a second, two kinds of index, and an opinion about what to do with the silence before each track.
This page reads the sheet, shows every track's start and length, lets you correct titles, and cuts the album image into one file per track, tagged and ready to download singly or as a ZIP.
For WAV the cut is a slice of the original sample data, so nothing is decoded, dithered or re-encoded. A FLAC image is decoded by the browser first, which limits it to 30 minutes, and its tracks come out as 16-bit WAV, not FLAC; for a longer FLAC image, convert it to WAV first.
Key features
- CUE parsing for TITLE, PERFORMER, SONGWRITER, ISRC, REM GENRE, DATE, COMMENT and DISCID, TRACK, INDEX 00 and 01 and PREGAP, with line numbers in error messages
- Three pregap modes: append to the previous track, start each track at its INDEX 00, or discard the pregap
- WAV cut on exact CUE frames from PCM or float files (a WAV header holds up to 4 GB); FLAC images of up to 30 minutes decoded and written as 16-bit WAV tracks (there is no FLAC output); MP3 cut on frame boundaries or decoded and re-encoded at 128 to 320 kbps
- Tags written to each track (WAV LIST INFO, or ID3v2.3 for MP3), a file name pattern with %n, %t, %a and %A, and a text-encoding choice for old sheets
- Per-track downloads and a ZIP, with names made safe for Windows and macOS
How CUE times become cut points
A time in a CUE sheet is MM:SS:FF. FF counts frames of a CD, 75 to the second, so it runs from 00 to 74, and MM can pass 59. At 44,100 Hz one frame is exactly 588 samples, and at 48,000 Hz it is 640, so a cut falls on an exact sample. At 22,050 Hz it is 294 samples; at 32,000 Hz it would be 426.67, so a cut there is rounded to the nearest sample.
INDEX 01 is where the music starts. INDEX 00, when present, marks the start of the pregap before it, the stretch of silence or lead-in that CD players skip over. PREGAP is different: it describes silence that is not stored in the audio file at all. This page turns a PREGAP into real silence only when you start tracks at INDEX 00.
A sheet may name several FILE lines, one per track; this page only handles the usual single-file image and says so if the tracks span more than one file. Sheets are decoded as UTF-8 when that is valid and as Windows-1252 otherwise, and a menu offers Windows-1251, Shift JIS, GBK and EUC-KR for sheets from other countries.
How it works
For a WAV, the page reads the header, finds the fmt and data chunks, and builds each track from a new header plus a slice of the original file between two sample positions. The slice is taken straight from the file, so a 600 MB image never has to fit in memory. The new header repeats the original format chunk, so bit depth, channel count and float or integer coding are unchanged.
Common use cases
- A live album in which each song fades into applause: choose Append to the previous track so the applause stays with the song it follows, as the original disc does.
- A classical album with silent pregaps that a gapless player should reproduce: pick Start each track at its INDEX 00, and a PREGAP before track 1 becomes real silence at its start.
- A 28-minute FLAC image of an EP that a collector wants as WAV tracks for a player that does not read FLAC: the image is decoded in the browser and written as 16-bit WAV. A 52-minute album image is over the 30-minute decode limit and has to be converted to WAV before it is split.
How to use this tool
- Choose the .cue file; fix the text encoding if accents look wrong.
- Choose the album image: a WAV, FLAC or MP3.
- Pick how pregaps are handled, edit titles and artists in the table, and set the file name pattern.
- Press Split into tracks, then download the tracks one by one or all at once as a ZIP.
Example
A CUE sheet for a three-track album image
Track 1 INDEX 01 00:00:00. Track 2 INDEX 00 09:20:50 and INDEX 01 09:22:00. Track 3 INDEX 01 18:03:37. Audio: 44.1 kHz stereo 16-bit WAV.Track 1 under each pregap mode
Append to the previous track: track 1 runs from 00:00:00 to 09:22:00, 562.000 s, 99,136,800 bytes of audio.
Start each track at INDEX 00: track 1 ends at 09:20:50, 560.667 s, 98,901,600 bytes; track 2 starts 1.333 s earlier.
Discard the pregap: track 1 is 560.667 s as well, and the 1.333 s before track 2's INDEX 01 is left out of every track.
Track 2 is named "02 - Miles Davis - Freddie Freeloader.wav" with the pattern %n - %a - %t.Common pitfalls
FLAC images are decoded by the browser and written as 16-bit WAV, so the tracks are larger than FLAC would be. A 16-bit FLAC returns to its own sample values, but a 24-bit FLAC loses its lowest 8 bits. The decode limit is 30 minutes, which rules out most full-length albums: split those from a WAV copy.
MP3 frame cutting cannot hit an exact time. Frames are 26.1 ms long at 44.1 kHz, so a track starts up to about 13 ms from its CUE time, and the first frames of a piece may click on some decoders because of how MP3 stores data across frames.
- Open the table before splitting and check that the last track's length is plausible: a wrong INDEX at the end shows up as a track far too long or one that starts past the audio's end.
- Use %n - %t for a player that sorts by file name, and add %a only for compilations where the artist changes.
Common errors and how to fix them
- Line 12: "01 00:61:00" is not a time in MM:SS:FF form
- Seconds stop at 59 and frames at 74. The sheet has a damaged time; correct it in a text editor and load it again.
- Track 2 starts at 00:05:00, not after track 1 (00:10:00)
- The INDEX 01 times must increase. The sheet is out of order or a time was mistyped.
- This CUE sheet names 2 audio files
- Only a sheet for one audio file can be split. Join the files into one image first, or split each file with its own sheet.
- Track 7 starts at 61:20:00, which is past the end of the audio file
- The sheet belongs to a longer image than the file you chose, or the audio is truncated.
What tags are written and where
For a WAV, the title goes to INAM, the artist to IART, the album to IPRD, the track number to ITRK, the date to ICRD, the genre to IGNR and the comment to ICMT, in a LIST INFO chunk between the format and data chunks. Players and tag editors that read RIFF INFO show them; many players ignore WAV tags altogether.
For an MP3, a new ID3v2.3 tag is written with the title, artist, album, album artist (the sheet's PERFORMER), year (when DATE starts with four digits), track as n/total, genre and comment, using the same tag writer as the Audio Tag Editor on this site.
Why the pregap choice changes track lengths
A CUE sheet gives each track two moments, the start of its pregap and the start of its music, and a split has to put the stretch between them in one file or the other. Appending it to the previous track keeps every sample of the disc and makes a track end with the lead-in of the next, as it does on a gapless-ripped CD. Starting at INDEX 00 puts the lead-in first in its own track. Discarding it loses that audio, which is right only when the pregap is known to be silence.
Frequently asked questions
How does this differ from Split Audio File on this site?
Split Audio File cuts at times you pick. This page takes the cut points, tags and names from a CUE sheet, and handles INDEX 00 pregaps.
Are the tracks bit-identical to the source?
From a WAV, yes: each track's sample data is the same byte range of the original file, and only the header around it is new. From a 16-bit FLAC the WAV tracks hold the same 16-bit sample values as the FLAC, because each decoded sample is mapped back to its integer; a checksum of the audio matches the matching stretch of the source, though the file bytes differ. From a 24-bit FLAC or an MP3 they are not identical.
Why do accented titles look wrong?
The sheet was probably saved in a legacy encoding. Change the text encoding menu under the CUE sheet until the titles read correctly; the table updates at once.
What happens to the REM, ISRC and DISCID lines?
GENRE, DATE and COMMENT are written into the tags. ISRC and DISCID are read, so a sheet with them loads, but they are not copied into the tracks.
Why is the ZIP refused for a large album?
A ZIP is built in memory, and above 600 MB of tracks that is not safe. Download the tracks one by one instead; each is a slice of the original file and needs no extra memory until it is saved.