(Redirected from Export)

SandCastleIcon.png This article 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.
See also: Backpack

Exporting and importing are the processes of extracting a particular file and implementing it back into a program. In Scratch, it deals with the transferring of projects, sprites, costumes, backdrops, sounds, scripts, variables, and lists.


Exporting is the act of saving files from an external program to a computer or external storage.


An example of one viewing a Scratch project in 7-Zip.

To export a Scratch project, click File and then Save to your computer. Saving to your computer is the same as exporting the project as an .sb3 file in Scratch 3.0, an .sb2 file in Scratch 2.0, or an .sb file in Scratch 1.4. sb3 and sb2 are .zip files.


To export a sprite, right-click on the sprite's icon in the sprites panel and select the option export. It will then save the sprite to your computer, external hard drive, or SD card as a .sprite3 file in Scratch 3.0, a .sprite2 file in Scratch 2.0, or a .sprite in Scratch 1.4.


To export a particular costume, right-click on the costume's icon in the Costume Pane and select export. If the costume is in vector, it will save as a .svg file, and if the costume is in bitmap, it will save as a .png file.


To export a particular backdrop, you must right-click on its icon in the Backdrop Pane and select the export option, which allows you to save the backdrop to your computer in the file formats of the costumes.


To export a particular sound, right-click on its icon in the sounds pane and select the option export. The sound will be exported to your computer, drive, or SD card as a .wav file.


Without exporting the entire sprite or project file, scripts can only be exported using the backpack. To export a script, open the backpack and drag the script in. Now you can use that script anytime.

Note Note: You must be logged in to use the backpack.

Scripts are saved in the .json format. You can assess it by exporting a sprite and converting it to a .zip file. Unzip it, and a .json file can be extracted and read.

Note Note: When one exports a script this way, they cannot import the script back in.


To export a list, right-click or click and hold on the list monitor while in the editor and select export, which allows the list to be saved as a .txt file.


Importing is the process of transferring external files, such as those stored in File Explorer (Windows), Finder (Mac), or another file manager into a program.


To import a project into the project editor, you must access File > Load from your computer. Once a project is selected (Scratch 3.0 reads .sb, .sb2, .sb3, and .zip files), it will be loaded in Scratch.


Import button.png

To import a sprite, select the "Choose a Sprite" button underneath the stage, click on the "Upload Sprite" option, then select a sprite file (.sprite, .sprite2, or .sprite3) or desired image in a supported format (.svg, .png, .jpeg, .bmp, and .gif).

Costumes and Backdrops

To import a costume or backdrop, select "Upload Costume" or "Upload backdrop" in the paint editor and choose the desired image file in a supported format (.svg, .png, .jpeg, .bmp, and .gif).


See also: Sound File Format

To import a sound, click the "Upload Sound" button (in the "Choose a Sound" menu) and select the sound to import. Scratch can only read .mp3 and .wav files.[1]


To import a script, open up the backpack and drag the script out.


To import a list, right-click or click and hold an existing list's monitor and select the import option. Then, select any .txt or .csv file to import into the list. Each line in the .txt file represents each item in the list. If an imported file is detected to be a .csv file, only one column, chosen by a "Which column should be used?" prompt, will be imported.

See Also


Cookies help us deliver our services. By using our services, you agree to our use of cookies.