Eng:Scratch File Format (1.4)

The Scratch File Format is the format with which a Scratch file,  (Scratch Project) or   (exported sprite) file, is encoded.

Scratch needs to save all the information and media - stage, sprites, scripts, sounds, images - in a Scratch project or script to a single file. This means the format for encoding that information is rather complicated.

For a technical description of the file format, start with Project File or Sprite File.

Libraries
Other than using Scratch program or modifications of Scratch's source code, there are the following libraries for reading/writing Scratch project files:
 * Kurt, written in Python. Supports scripts, variables, lists, colors. Can read all the scripts in a project file and output Block Plugin code. Supports images (nearly!) but not sounds.
 * sb.js