Moving off Trinket? Bring your programs with you.
trinket.io shut down on August 31, 2026. Upload the export zip you downloaded from Trinket and CodeHS will turn your Python, HTML, Java, and pygame trinkets into Sandbox programs you can run, share, and assign — free.
Import your trinkets
Drop in the zip Trinket gave you. CodeHS reads it in your browser session, shows you exactly what's inside, and only creates programs once you say so.
- 1 Upload your zip
- 2 Pick what to import
- 3 Open your programs
Drop your Trinket export zip here
Works with the whole-account export (trinket-export-….zip) and with single-trinket downloads.
Nothing is saved to your account at this step — you'll see what's in the zip first.
Your export has more trinkets than this page can list at once. Import these, then upload the zip again to pick up the rest.
Uncheck anything you don't want. To change where a program lands, double-click its Imports as cell.
Almost there — your programs need an account to live in
Log in or create a free CodeHS account in a new tab, then come back to this page and pick up where you left off. Your zip is still loaded.
Getting your work out of Trinket
Export everything at once
If you did this before Trinket closed, you already have the file. Trinket emailed a download link and named the zip something like trinket-export-a1b2c3d4e5f6.zip — check your downloads folder and your email.
Or grab them one at a time
Open a trinket, click Share, then Download. You get a small zip named after that trinket's short code. The importer takes those too, so you can move a single project without exporting your whole account.
Upload it here
Drop the zip into the importer above. You'll see every trinket it found and the CodeHS program type each one is headed for before anything is created. Jump back to the importer.
What each Trinket type becomes
The importer reads each program's code, not just its Trinket label — a Python trinket that imports turtle lands on CodeHS's turtle canvas, and one that imports matplotlib lands on the data science type. You can override any of it before importing.
| In Trinket | On CodeHS | Notes |
|---|---|---|
| Python, Python 3, Python Console | Python 3 | Turtle, pygame, tkinter, numpy, pandas, and matplotlib programs land on the matching CodeHS Python type automatically. |
| Music | Python 3 | Trinket's music library isn't available on CodeHS. The code imports as a Python 3 program so you keep it, but it won't run as-is. |
| HTML/CSS/JS | HTML | |
| Blocks, GlowScript Blocks | Not supported | Trinket saves block programs as Blockly XML, which CodeHS block coding can't read. Keep the .xml file from your export for reference. |
| GlowScript | Python 3 | GlowScript's 3D VPython library isn't available on CodeHS. The code imports as a Python 3 program so you keep it, but it won't run as-is. |
| Java | Java (main) | |
| R | Not supported | CodeHS doesn't have an R program type, so there's nowhere to run this one. |
| Pygame | Pygame |
What you get on the other side
Trinket gave you an editor. CodeHS gives you the editor plus the classroom around it.
The same browser editor, more languages
Python, Java, JavaScript, HTML/CSS, C++, SQL, and more — all running in the browser with nothing to install. Works on Chromebooks, same as Trinket did.
Learn MoreAssignments and a gradebook
Assign a program to a class, watch students work in real time, and grade from one place. Autograders check the work for you on the assignments that support them.
Learn MoreCourses already built
Intro CS, AP CSA, AP CSP, cybersecurity, and dozens more, with lessons, exercises, and solutions written. Use them as-is or pull individual pieces into your own course.
Learn MoreShare links and embeds
Every Sandbox program has a share link, and an embeddable editor you can drop into a site, a blog post, or your LMS — the job the Trinket iframe did for you.
Learn MoreRosters that sync
Google Classroom, Clever, ClassLink, and LTI 1.3 keep your sections and grades in step with the systems your school already runs.
Learn MoreFree to start
The Sandbox, the IDE, and every program type this importer targets cost nothing. Pro adds the teacher tools; you don't need it to move your work over.
Learn MoreMoving from Trinket: common questions
What happens to my programs when Trinket shuts down?
Trinket stopped operating on August 31, 2026, and trinket.io no longer serves trinkets, courses, or account pages. Anything you exported before then is still yours — the zip on your computer holds your code and your uploaded assets, and this page turns it into CodeHS Sandbox programs. If you never downloaded an export, that work isn't recoverable from Trinket, but you can start fresh on CodeHS for free.
Where do I find my Trinket export zip?
Trinket put it in one of two places. If you used Account Settings → Data → "Download All Trinkets", look for a file named something like trinket-export-a1b2c3d4e5f6.zip, which Trinket emailed you a link to. If you downloaded one trinket at a time from its Share menu, each file is named after that trinket's short code. Both work here.
Which Trinket program types can CodeHS import?
Python, Python 3, console, pygame, HTML/CSS/JS, and Java come across as runnable CodeHS Sandbox programs. GlowScript and music trinkets import as Python 3 so you keep the code, but the libraries they depend on aren't part of the CodeHS runtime, so they won't run unchanged. R and block-based trinkets have no CodeHS equivalent — the importer lists them so you know exactly what didn't come across.
Do I need a CodeHS account to use the importer?
You can upload your zip and see everything in it without an account. Creating the programs needs somewhere to put them, so that step requires signing in. A free CodeHS account is enough — the Sandbox, the IDE, and every program type the importer targets are free.
What happens to the images and files my trinkets used?
Trinket's bulk export includes the assets you uploaded, and the importer brings them along. Each asset is attached to the program that used it and sits next to the code, so an image a Trinket program referenced by name keeps working in CodeHS.
Can I embed CodeHS programs in a website the way I embedded trinkets?
Yes. Every Sandbox program has a share link, and CodeHS gives you an embeddable version of the editor you can drop into a page, a blog post, or an LMS with an iframe — the same job the Trinket embed did. Students can run the code without leaving your page.
What about my Trinket courses and lesson pages?
Trinket courses exported as web pages, not as code, so the importer doesn't convert them — it handles trinkets. For the course side of the move, CodeHS has a full catalog of computer science courses with lessons, exercises, and autograded assignments already built, and teachers can create their own courses and assignments on top of them.