Scratch 2.0 File Format

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
 
|subcat=Source code
 
|subcat=Source code
|extensions={{ext|sb2}}
+
|extensions={{ext|sb2}}, {{ext|sprite2}}
 
}}
 
}}
 
 
The '''Scratch 2.0 File Format''' saves projects in version 2.0 of the [[Scratch]] programming language. Scratch is a language designed to teach programming to young children. Since the program code consists of graphical tiles rather than text-based source code, a binary format was used for the earlier [[Scratch 1.4 File Format]], but the format has changed with 2.0. Scratch 2.0 runs from a web browser, so no installation is needed as with the earlier versions. Registered users can save their programs on the server, but unregistered users can still run Scratch online and upload/download programs saved on their own computer.
 
The '''Scratch 2.0 File Format''' saves projects in version 2.0 of the [[Scratch]] programming language. Scratch is a language designed to teach programming to young children. Since the program code consists of graphical tiles rather than text-based source code, a binary format was used for the earlier [[Scratch 1.4 File Format]], but the format has changed with 2.0. Scratch 2.0 runs from a web browser, so no installation is needed as with the earlier versions. Registered users can save their programs on the server, but unregistered users can still run Scratch online and upload/download programs saved on their own computer.
  
Line 11: Line 10:
  
 
== Documentation ==
 
== Documentation ==
* [http://wiki.scratch.mit.edu/wiki/Scratch_2.0_File_Format Scratch 2.0 File Format]
+
* [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format_%282.0%29 Scratch 2.0 File Format]
  
 
== Other links ==
 
== Other links ==
 
* [http://scratch.mit.edu/ Official Scratch site]
 
* [http://scratch.mit.edu/ Official Scratch site]
 +
 +
[[Category:ZIP based file formats]]
 +
[[Category:JSON based file formats]]
 +
[[Category:MIT]]

Latest revision as of 19:30, 12 January 2022

File Format
Name Scratch 2.0 File Format
Ontology
Extension(s) .sb2, .sprite2

The Scratch 2.0 File Format saves projects in version 2.0 of the Scratch programming language. Scratch is a language designed to teach programming to young children. Since the program code consists of graphical tiles rather than text-based source code, a binary format was used for the earlier Scratch 1.4 File Format, but the format has changed with 2.0. Scratch 2.0 runs from a web browser, so no installation is needed as with the earlier versions. Registered users can save their programs on the server, but unregistered users can still run Scratch online and upload/download programs saved on their own computer.

Scratch projects are stored in files with a .sb2 extension. The contents are ZIP-compressed data, including various items which are part of the project (.png, .svg, and .wav files, named with numbers). The main item is a file called project.json, in JSON format.

Detailed documentation can be found in the Scratch wiki.

[edit] Documentation

[edit] Other links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox