QR code

Blocks ::: block_qrcode
Maintained by WWU logo smallLearnweb – University of Münster, Photo of JanJan Dageförde
A Moodle block to display a QR code link that leads to the course page. The QR code can be downloaded by teachers, e.g. to put them into introductory slides. A custom logo can be shown within the QR code.

QR code v3.10-r1

Moodle 3.5, 3.8, 3.9, 3.10, 3.11
Released: Tuesday, November 17, 2020, 4:12 PM

Block: QR Code

Build Status

A moodle block to display a QR code link that leads to the course page. The QR code can be downloaded by teachers, e.g. to put them into introductory slides. Teachers can download the QR code as svg or png files. The administrator can upload a custom logo that is displayed in the center of the QR code, defaulting to the Moodle logo if none is specified.

This plugin is developed by Tamara Gunkel and is maintained by Learnweb (University of Münster).


This plugin should go into blocks/qrcode. Afterwards, a custom logo may be defined (see Administrators' view)


Students' view

The students can only see the QR code.


Teachers' view

The teachers see the QR code and the download options. If you choose png as file format, you can download a small (150px) or big (300px) image. If you choose the svg format you cannot choose a size, because it is a vector graphic that always scales nicely.


Administrators' view

The administrator can change the logo. She must upload separate png and svg versions of the same logo, which are then used in the respective QR code formats. She can also configure that no logo should be displayed inside the QR code.


Background and Motivation

We wanted to have a configuration-free, ready-to-use QR code that leads you into a course when you photograph it. Since it is a block, a teacher only needs to add it his/her your course and then see the code right away (including a "Download" button to include it into introduction slides or to print it as a handout to students). If you leave the block where it is, it will also help students switch devices (e.g. start learning on the computer and continue on a mobile device merely by photographing the QR code).

With more than 2000 courses starting every term, many of them have short names along the lines of IT or SE or other ambiguous abbreviations. Students search for these abbreviations using course search and may get some hundred, rather unrelated, results. This drives up our servers' loads and does not really help our students anyway, which is why we looked for alternative means to get them into their courses for the first time. It might make sense to activate this block by default in all new courses, hoping that teachers will put their QR codes into their introduction slides. This is made (relatively) easy as the block does not require any configuration by teachers.

Version information

Version build number
Version release name
Stable version
MD5 Sum
Supported software
Moodle 3.5, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11

Version control information

Version control system (VCS)
VCS repository URL
VCS tag

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit http://yoursite.com/admin to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.