Trinket helps you teach with code

Code is Your Canvas

Sign Up for your Free Account

Share Code from any Device

Trinket lets you run and write code in any browser, on any device.

Trinkets work instantly, with no need to log in, download plugins, or install software.

Easily share or embed the code with your changes when you're done.


Find and create great examples that fit your teaching and your classroom. Explore all the trinket types:


Trinkets go just about anywhere. Similar to YouTube videos, you can embed or link to them from your class website. Get your students all on the same page with the interactive examples that demonstrate the concepts you're teaching.

Read our series of How-To blog posts for ideas on how to integrate trinkets into your teaching.


Trinkets let you adapt your class to the needs of your students. If you're looking for inspiration, here are some of the amazing teachers we've interviewed on our blog:

Want to get started teaching with code? We've created an Hour of Python as a self-guided activity with input from teachers and students around the world. It's the perfect first step towards bringing code into your classroom, with block-based and real Python tracks.

Create Your Free Account

Let's get started! Your free account will let you create trinkets, see interaction statistics for each trinket you create, and more.

Sign In with Google

or create account below