I am wondering if there already exists a translator to export a scratch project to HTML and javascript or to export a project so it can be played on a tablet.
3 Answers
As Scimonster mentioned in a comment, Phosphorus (written by Nathan) will run your projects on an HTML5 Canvas and let you export the project to other places.
However, Sulfurous is an improvement to the Phosphorus player and might run projects more accurately to how the Scratch Player would.
Note that both players have issues and might not replicate the projects perfectly.
-
But how to package it standalone without needing to run it on a link given by these tools Phosphorus or Sulfurous? – sçuçu Nov 12 '19 at 22:25
Yes, you can use Scratch HTMLifier by SheepTester, which generates a HTML file that runs the project. It uses the official Scratch VM so everything should work the same as in Scratch. Note that variables and ask prompts will look different.

- 4,170
- 1
- 14
- 28
-
This doesn't seem so nice. I have a simple dart game simulator but it doesn't work properly in the html version – SK-the-Learner Apr 06 '21 at 08:41
You don't need Phosphorus or Sulpherous now, since Scratch 3.0 (the current version) allows you to directly play on a tablet from the Scratch website. This is because Scratch 3.0 doesn't need Adobe Flash.

- 831
- 10
- 26
-
1But I was wondering if it can be packed as a standalone web app at a specific url? – jayarjo Jun 30 '19 at 11:29
-
1@jayarjo You can add `/embed` after the project url. For example: `https://scratch.mit.edu/projects/303683408/embed` – VFDan Jun 30 '19 at 18:23