Revision as of 03:28, 15 June 2020 by Myed (talk | contribs) (phosphoruswrapper: rm as project is dead)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SandCastleIcon.png This page has links to websites or programs not trusted by Scratch or hosted by Wikipedia. Remember to stay safe while using the internet, as we can't guarantee the safety of other websites.

The Scratch project format (.sb, sb2, or .sb3) can only be read by the Scratch editor. Compiling a scratch project can convert it to another format that can be opened without Scratch. Compiling was a popular suggestion for Scratch 2.0,[1] However, it wasn't added in the normal online or offline editors. To get around this, many Scratchers have made ways to turn Scratch Projects into more widely known formats such as a Windows Executables, Android Apps and Mac applications.

Porting is useful for those who want to distribute the project to various computers offline, especially if it's a game or not appropriate for Scratch.

This tutorial will cover how to turn a Scratch project into various executable file formats for Windows, Macintosh, and Linux.

Porting SB3

Unfortunately, .sb3 projects can not be ported without converting them. In order to port .sb3 projects, they need to be converted to .sb2. Scratch user -Rex- made a .sb3 to .sb2 converter here. Run (requires Python) to run the converter. After the .sb2 is saved, the guides below can be followed (.mp3 files will not be converted to .wav to be used in the .sb2).

SB2 (Scratch 2.0) to .app or .exe

Note Note: This will convert into .app on MacOS and .exe on Windows
Note Note: These steps work as of 12/25/2018. SB3 files will need to be converted into SB2 first.
  1. Download your 2.0 project from the Scratch Website or the 2.0 Offline Editor.
  2. Go to this site and convert your sb2 file into .swf.
  3. Go into this adobe flash player site and scroll down until you get to the Flash Player archives section.
  4. Download version or earlier.
  5. Open zip, as it should download as a zip. The resulting folder should be called something like fp_10.3.183.90_archive. (Exact name will vary depending on which version you downloaded. This also applies to step 7 and 8.)
  6. Open folder.
  7. Open folder named something like 10_3_r183_90.
    Note Note: Do not open the folder named 10_3_r183_90debug
  8. Note Warning: Not following the next step properly may result in your built-in flash player to stop working.
    If you are on MacOS, open the zipped file called something like If you're on Windows, open the file called something like flashplayer_10_3r183_90_win.exe.
  9. The previous step should give you a standalone flash player app.
  10. Open the app.
  11. Open your .swf file by going File>Open File> YourScratchProject.swf
  12. Now in the File menu, go down to Create Projector and click. It will now generate your .app file or your .exe file.
  13. You are done! You now have a standalone scratch program that will run without needing any other software.

SB2 (Scratch 2.0) to SB (Scratch 1.4)

It is possible for one to convert an SB2 file from Scratch 2 to a Scratch 1.4 SB file using blob8108's Retro Converter. Then, if desired, other tools can be used to port it to various formats.

Note Note: The converter can only convert 1.4 blocks. It cannot convert 2.0 This means converted projects cannot use clones, cloud, custom blocks, or other new Scratch 2.0 features.

SB2 to SB

  1. Download your 2.0 project from the Scratch Website or the 2.0 Offline Editor.
  2. Go to the Retro Converter and follow the instructions there to convert to SB.
  3. Once converted, a pop-up should appear and you will be able to download a 1.4 version (SB) of your 2.0 (SB2) Scratch project.

SB to Other Formats

  1. Now, follow the other Scratch 1.4 tutorials on this page to convert to various other formats.


Note Note: This converts to an EXE on Windows, and an APP on MacOS.
Note Note: This only works for Scratch 1.4 and earlier.
  1. Install BYOB (see resources and links for a link to the website).
  2. Open your SB file.
  3. Click "Compile this project" under the Share menu.


SB to JAR (Java executable)

Note Note: This only works for Scratch 1.4 and earlier.

This method works on all operating systems with a Java runtime installed, including Mac, Windows, and Linux.

  1. Download ToJAR (see resources and links)[2]
  2. Unpack/extract the .zip file
  3. In the ToJAR folder, double click on the program folder, then on the dist folder and then double click on the ToJAR.jar file.
  4. This will launch the ToJAR application which looks like this:
  5. Click the first select button and choose the input (SB) file.
  6. Choose your output name, and be sure to append the .jar file extension, for example Example.jar
  7. Choose your output location, being sure to put the name of your JAR file at the end. For example, C:/Documents and Settings/Documents/Example.jar
  8. Click "Compile"

SB to APP via Java

Note Note: This only works on Mac OS X.
  1. Follow the steps above to make a JAR file.
  2. Find and launch the Jarbundler application, which should look like this:


  1. From the tabs at the top, the first tab says build information. You can set a custom icon in this tab if you wish. The icon must be in .icns format (use Icon Composer (comes with Mac) to convert a PNG file into .icns format). If no icon is provided, the icon shown will be used).
  2. Select the JAR file you created in toJAR as the Main Class.
  3. Click the button at the bottom that says Create Application...
  4. Choose an output folder to save your project in

SB2 to SWF

You can download an SB2 to SWF converter or use an online converter at this site.

Resources and Links


  2. Forum topic