Filters ::: filter_scratch
Maintained by Ralf Krause - moodleSCHULE e.V. - GermanyRalf Krause
The Scratch filter allows you to embed Scratch games into labels, forums, or web pages automatically - wherever you create a link to a .sb Scratch file that has been uploaded onto the Moodle server (either as an attachment to a forum post, or as a course file).
Latest release:
127 sites
12 fans
Current versions available: 1

The Scratch Filter allows you to embed Scratch games into labels, forums, or web pages automatically - wherever you create a link to a .sb Scratch file that has been uploaded onto the Moodle server (either as an attachment to a forum post, or as a course file).

This not only allows you to use Scratch files as teaching aids, examples, or games but also allows students to share their own Scratch games with other students via a forum, giving and receiving feedback and learning from each other's scripts.

To install and configure:

  1. Unzip the Scratch plugin folder to the filters folder on your Moodle server
  2. Log in as administrator and visit the notifications page.
  3. Enable the Scratch filter (Modules > Filters > Manage Filters)
  4. Change the settings to enable or disable autoplay (Modules > Filters > Scratch)
  5. Test out the plugin by adding a link to a Scratch file in a label or creating a forum post with a Scratch file as an attachment


ScratchApplet.jar and are included with permission from the Scratch team. These files may need updating from time to time as new versions of Scratch are released. They are generally available from: and

Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. See


Screenshot #0


Ralf Krause - moodleSCHULE e.V. - Germany
Ralf Krause (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • math
    Thu, Nov 21, 2013, 6:14 AM
    Ralph, I just today received an email from a teacher (who loves Scratch, Moodle, and your filter!) with a screen shot of a JAVA security warning, including the statement, "Running unsigned applications like this will be blocked in a future release...". She is really worried that she will no longer be able to display Scratch files in Moodle. Is there an update to the current filter that addresses the signing issue? Or is there a filter for Scratch 2 available? Thanks for a great Moodle addition and any further help you can provide.
  • Dan Trockman
    Thu, Nov 21, 2013, 8:26 AM
    Those warnings and blocks are about the browsers, browser plugins, and java itself. They are more like disclaimers and becoming ridiculous. I'm still very interested in a scratch 2 Moodle plugin. I've not seen a runtime from MIT yet and cannot get a reply from them. Anyone?
  • Richard Lian
    Mon, Mar 3, 2014, 11:48 PM
    Hi all, Can someone tell me how to add a link to a scratch file already present on Moodle as I can't find the "true" url for it, just the php id.

  • Graham Bowman
    Tue, Mar 4, 2014, 2:45 AM
    @Richard, this is something I wrote for our staff, hope it helps. How to embed a Scratch file:

    Upload the file as a "File" resource. Edit the resource settings (cog) and press "Save and display" - this takes you to a page with a link to the actual file.

    Copy the link to the file (not the resource), it will end in .sb

    Type any text and make it a link (chain button, you might need to press show editing tools) to the .sb file that you just copied.


    Optionally - hide the original file resource with the [eye] button.
  • Richard Lian
    Tue, Mar 4, 2014, 6:48 PM
    Hi Graham,

    That's great - worked a treat thanks!

    Just struggling with Java now with it blocking due to out of date or expired version of Java. Not sure if that is with the browser plugin or Moodle itself or the Scratch program being used....
  • Richard Lian
    Thu, Mar 6, 2014, 11:30 PM
    I don't suppose anyone has any thoughts or past experience with the Java issue?
  • Ralf Krause - moodleSCHULE e.V. - Germany
    Fri, Mar 7, 2014, 1:25 AM
    Hi, I used the original player from for the Moodle filter.
  • Richard Lian
    Fri, Mar 7, 2014, 4:14 PM
    Hi Ralf - have you experienced the Java security issues though? Is it actually a signed applet?
  • Shefali Bhuta
    Wed, Aug 20, 2014, 2:57 PM
    I have installed the plugin successfully and enabled the filters.

    I have some scratch projects. which I want to show my students as samples.

    I am trying to upload the file to the course but I keep getting file type not allowed.

    Pls help.

  • Sam Mudle
    Fri, Nov 21, 2014, 10:38 PM
    Hi Shefali,

    The new version of Scratch 2.0 will not work with this 1.4 filter. Take a look at my hack here:
  • Rehan Amjad
    Fri, Nov 18, 2022, 6:46 PM

    I want to use this plugin in moodle 4.0 is there any way or any other plugin which i can use in latest moodle?
  • Ralf Krause - moodleSCHULE e.V. - Germany
    Fri, Nov 18, 2022, 7:15 PM
    Hello Rehan,
    you do not need the plugin anymore since Scratch 3.0 allows the embedding of projects into web pages.

    To view and play Scratch projects on outside websites, you can embed the project with the following steps:
    1. Click "copy link" in the bottom right of the project pane.
    2. A dialog will appear, with two boxes and two links.
    3. Click the "copy embed" link.
    4. Take a text label or a text page in Moodle.
    5. Paste the embed code into the HTML editor where it needs to go.

    Best regards, Ralf
  • Rehan Amjad
    Fri, Nov 18, 2022, 7:21 PM
    Thank you so Much Mr. Ralf.

    Is there anyway we can provide scratch in moodle to create something in moodle? and submit work maybe
  • Ralf Krause - moodleSCHULE e.V. - Germany
    Fri, Nov 18, 2022, 7:37 PM
    Inside of Moodle you can use Snap! to program your projects.
    But there is no presentation page as you can find on And Programming is only one part of the pedagogical Scratch concept: Scratch - Imagine, Program, Share
  • Rehan Amjad
    Fri, Nov 18, 2022, 7:49 PM
    Alright Mr. Ralf, Thank you
1 2
Please login to post comments