Free online SB2 to PDF converter
Create a printable PDF record of Scratch 2 project data from an SB2 file.
SB2 to PDF
This online conversion is temporarily unavailable. We are working on restoring it.
How to convert sb2 to pdf file
- Programming
- No ratings yet.
101convert.com assistant
5m
Scratch projects are often saved as SB2 files, but people may need a PDF to print project data or share a viewable record with someone who does not use Scratch. A PDF can document the project, but it cannot preserve its interactive behavior.
What the SB2 format is
SB2 is the project format used by Scratch 2.0, the block-based programming environment. An SB2 file is a ZIP archive that typically contains project.json with the project’s sprites, scripts, and stage data, plus any image and sound assets. You encounter it when opening or archiving projects made with Scratch 2.
What the PDF format is
PDF is a document format for sharing and printing paginated content across devices. It is useful for a fixed, viewable record of project information, but it does not run Scratch scripts or retain editable Scratch blocks.
How to convert an SB2 file to PDF
Online on 101convert.com
- Open the SB2-to-PDF converter page on 101convert.com and upload the SB2 file.
- Choose PDF as the output format and start the conversion.
- Download the converted PDF when it is ready. The page supports batch conversion; check its displayed per-file size limit before uploading.
Offline with desktop software
Python and the open-source ReportLab library can make a PDF listing of an SB2 project’s JSON data. This creates a text report, not a visual rendering of Scratch blocks, and does not include the project’s image or sound assets.
- Install Python and ReportLab, then save the script below as
sb2_to_pdf.pyin the same folder asproject.sb2. - Run
python -m pip install reportlab, followed bypython sb2_to_pdf.py. The script writesproject.pdf.
import json
import textwrap
import zipfile
from reportlab.lib.pagesizes import A4
from reportlab.lib.styles import ParagraphStyle
from reportlab.platypus import SimpleDocTemplate, Preformatted
with zipfile.ZipFile("project.sb2") as archive:
project = json.loads(archive.read("project.json"))
text = json.dumps(project, ensure_ascii=False, indent=2)
lines = []
for line in text.splitlines():
lines.extend(textwrap.wrap(
line, width=100, subsequent_indent=" ",
break_long_words=True, break_on_hyphens=False
) or [""])
style = ParagraphStyle(
"json", fontName="Courier", fontSize=7, leading=8.5
)
document = SimpleDocTemplate("project.pdf", pagesize=A4)
document.build([Preformatted("\n".join(lines), style)])
Quality and limitations
A PDF report of the JSON is searchable text, but its contents are raw project data rather than Scratch’s graphical block layout. To preserve an editable project, keep the original SB2 file; the PDF is only a document representation.
Note: This sb2 to pdf conversion record is incomplete, must be verified, and may contain inaccuracies. Please vote below whether you found this information helpful or not.
SB2 vs PDF: format comparison
How the SB2 and PDF formats compare on the properties that matter most for this conversion.
| Property | .SB2 Scratch 2.0 Project File | .PDF Portable Document Format |
|---|---|---|
| Open standard | No | Yes |
| Compression | Both | Both |
| Typical file size | Small | Medium |
| Opens in a web browser | No | Yes, natively |
| Further editing | Easy | Limited |
| Metadata support | Basic | Extensive |
| Plain-text readable | No | No |
| Best used for | Embedding in applications | Publishing |
| Introduced | 2013 | 1993 |
| Developer | MIT Media Lab Lifelong Kindergarten Group / Scratch Team | Adobe Systems (now Adobe Inc.); standardized by ISO |
| MIME type | — | application/pdf |
Information about file extensions and file types is provided by File-Extensions.org
Frequently asked questions
Is the SB2 to PDF converter free?
Yes, converting SB2 to PDF on 101convert.com is completely free. No registration, email address or installation is required. If you need a higher file size limit or want to convert more files at once, see our plans.
How large can my SB2 file be?
You can upload SB2 files up to 3 MB and convert up to 3 files at once in a single batch. With a paid plan the limit is up to 50 MB per file and 5 files at once, see our plans.
What happens to my uploaded files?
Files are processed automatically and deleted from our servers within a few minutes after conversion. We never view or share your files.
Do I need to install any software to convert SB2 to PDF?
No. The SB2 to PDF conversion runs entirely online in your browser and works on Windows, Mac, Linux, Android and iPhone.
Did the conversion fail?
In most cases, the cause is an incorrect file format. Please upload a valid SB2 file for this SB2 to PDF conversion. Occasionally, the issue may be on our side. We analyze recurring conversion failures and disable or fix the converter if we detect a defect.