.SB

SB File

Scratch 1.x Project File
Ask a question
QUICK ANSWER

An SB file is a project made with Scratch 1.x (MIT's block-based coding environment), storing sprites, scripts, costumes and sounds in a binary format. Open it with the free offline Scratch 1.4 desktop app, or convert it to .sb3 to use the current Scratch editor at scratch.mit.edu. The modern online editor does not accept the legacy .sb format directly.

Developer: MIT Media Lab (Lifelong Kindergarten Group) Category: Developer Files MIME: application/x.scratch.sb
OPENS ON Windows macOS Linux Web
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Sep 7, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SB file format?

.sb files are associated with the Scratch programming environment - specifically the legacy Scratch 1.x desktop application developed by the MIT Media Lab.

Files with the .sb extension store Scratch projects: a complete application bundle containing all required resources, for example:

  • graphics and sprite costumes,
  • audio data (sounds and music),
  • scripts written in the visual Scratch block language.

Unlike the later .sb2 and .sb3 formats (which are ZIP archives containing a project.json), an .sb file is a binary Squeak/Smalltalk serialized object stream. It begins with an ASCII magic header - ScratchV01 or ScratchV02 - followed by an info block (thumbnail, author, comment) and the main object stream encoding the stage, sprites, scripts, costumes and sounds. Images are stored using run-length and Squeak bitmap encoding; embedded sounds are typically 22.05 kHz WAV-style audio.

What is Scratch? Scratch is a visual block-based programming language following an object-oriented paradigm. It was developed as an educational tool for children by the MIT Media Lab's Lifelong Kindergarten Group. Scratch uses simple drag-and-drop "puzzle piece" blocks to create objects and interactive functions, making it easy to build games, animations and interactive stories.

The .sb format was introduced with Scratch 1.0 in 2007 and last used in Scratch 1.4 (2009). Scratch 2.0 (2013) switched to .sb2 and Scratch 3.0 (2019) to .sb3. The modern online Scratch editor cannot open .sb files directly; the offline Scratch 1.4 application or a converter tool is required.

Security & safety

RISK: LOW

A Scratch project is sandboxed educational content with no system-level code, so .sb files are low risk. The realistic cautions: only the offline Scratch 1.4 app or a trusted converter should open them - avoid random "Scratch SB to EXE" sites that bundle adware - and very old projects may rely on features dropped in modern Scratch, so some blocks may not convert cleanly to .sb3.

Format details

in a nutshell
FULL NAMEScratch 1.x Project Fileaka Scratch project, Scratch 1.4 project
DEVELOPERMIT Media Lab (Lifelong Kindergarten Group)since 2007 (Scratch 1.0)
MIME TYPEapplication/x.scratch.sb
TYPEBinary serialized Scratch 1.x project (Squeak/Smalltalk object stream)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203040506070809
HEX
53637261746368563031
ASCII
ScratchV01
A Scratch 1.x .sb begins with the ASCII magic "ScratchV01" (or "ScratchV02"), followed by an info block and the serialized Squeak/Smalltalk object stream that stores sprites, scripts, sounds and images. This distinguishes it from the later ZIP-based .sb2/.sb3.

Programs that open SB files

Windows2 apps
Scratch 1.4 (offline) Free Install the legacy Scratch 1.4 desktop app and open the .sb directly to view, run and edit it.
Scratch (modern, via conversion) Free Convert the .sb to .sb2/.sb3 first, then open it in the online editor or Scratch Desktop.
macOS1 app
Scratch 1.4 (offline) Free Run the legacy Scratch 1.4 app to open the .sb (older macOS; on Apple Silicon use conversion to .sb3 instead).
Linux1 app
Scratch 1.4 (offline) Free Available via package managers/Squeak; open the .sb directly. Or convert to .sb3 for the modern editor.
Web1 app
Scratch online editor (after conversion) Free The current editor opens .sb2/.sb3; convert your .sb up first, then load it.

Technical details

deep spec
File structureBinary Squeak/Smalltalk serialized object stream; not a ZIP archive
Magic bytesASCII string `ScratchV01` or `ScratchV02` at byte offset 0
Byte orderBig-endian
Container layoutInfo ObjStream (thumbnail, author, comment) followed by main ObjStream (stage, sprites, scripts, costumes, sounds)
Image encodingSprite costumes stored as bitmaps with run-length and Squeak PixMap encoding
Color depthUp to 32-bit RGBA for embedded costume bitmaps
Audio encodingWAV-style PCM audio, typically 22.05 kHz, embedded in the object stream
Stage canvas sizeFixed 480×360 px (Scratch 1.x standard)
MIME typeapplication/x.scratch.sb (informal); generic fallback is application/octet-stream
SecurityUnencrypted; all data stored as a plain binary object stream
CompressionNo file-level compression; individual costume bitmaps may use Squeak run-length encoding internally
DeveloperMIT Media Lab, Lifelong Kindergarten Group
Platform supportWindows, macOS, Linux - via the Scratch 1.4 offline editor
Superseded by.sb2 (Scratch 2.0, 2013) and .sb3 (Scratch 3.0, 2019), both ZIP archives with project.json
Released2007 (Scratch 1.0)
Latest versionScratch 1.4 (2009) - last version to use the binary .sb format
Specificationen.scratch-wiki.info

SB conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SB files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SB files.

Frequently asked questions

What is an SB file?
It's a project made with Scratch 1.x, MIT's block-based coding tool for kids - it stores the sprites, scripts, costumes and sounds. It's the original format used up to Scratch 1.4.
How do I open an SB file?
Use the free offline Scratch 1.4 app to open it directly, or convert it to .sb3 so the current Scratch editor at scratch.mit.edu can load it.
Why won't the online Scratch editor open my SB file?
The modern editor only opens .sb2/.sb3 (ZIP+JSON). The legacy .sb is a different binary format - convert it up to .sb3 first, or open it in Scratch 1.4.
What's the difference between SB, SB2 and SB3?
.sb is Scratch 1.x's binary format; .sb2 is Scratch 2.0 and .sb3 is Scratch 3.0 - both .sb2 and .sb3 are ZIP archives containing a project.json. Newer Scratch uses .sb3.
Can I turn an SB project into an app or EXE?
Not from a raw 1.x .sb. Convert it to .sb3 first, then use a modern packager (like the TurboWarp packager) to make a standalone build, or just share it on scratch.mit.edu.
My SB file is described as a Mac sandbox config - which is it?
The .sb extension is reused: Apple's sandbox profile sources also use .sb. If yours is a Scratch project it opens in Scratch 1.4; a sandbox profile is a developer text file used by macOS' sandbox, unrelated to Scratch.

References

1Scratch Wiki - Scratch File Format (1.4)en.scratch-wiki.info
2Scratch - Download offline editors (incl. 1.4)scratch.mit.edu

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.SB3Scratch 3.0 Project File

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z