This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
- This article or section documents an outdated version of Scratch (version 1.4). For this article in the current version (version 3.0), see Scratch File Format (3.0). For this article in Scratch 2.0, see Scratch File Format (2.0).
The Scratch file format is the format with which a Scratch file, .sb
(Scratch project) or .sprite
(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
This section has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites. |
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. It nearly supports images but not sounds.
- sb.js
Files | |
Structure |
Object Table • Inline Values • Objects • Fixed-format Objects • User-class Objects |
Contents |