Quick Answer
Start with Khan Academy's Intro to JavaScript: Drawing and Animation. It is free, runs in a browser, and your child sees a shape they made in the first ten minutes, which is the thing that keeps a kid coming back. For a younger child who is not ready to type, CS50's Introduction to Programming with Scratch is second: coloured blocks, no syntax, no typos. Khan Academy's HTML/CSS and Python courses come next as the bridge from blocks to typed code. For teens, Codecademy's Learn Python 3 is the best guided in-browser option, and freeCodeCamp's Responsive Web Design and JavaScript Algorithms tracks are the only two picks here that end in a real certificate that costs nothing. The Odin Project's Foundations path ranks eighth and suits only the most motivated 16 to 18 year old. Age matters more than course quality: an 8-year-old and a 17-year-old need different starting points, and getting that wrong is the usual reason a child quits.
How we ranked these courses for kids
The 8 best free coding courses for kids and teens, ranked
| Rank | Course | Platform | Hours | Certificate | Age | Why it ranks here | CTA |
|---|---|---|---|---|---|---|---|
| 1 | Intro to JavaScript: Drawing and Animation | Khan Academy | ~10h | No | 8+ | The fastest visible payoff on this page: a shape your child drew with code inside ten minutes, and the code is real JavaScript | Start free |
| 2 | Introduction to Programming with Scratch | Harvard CS50 | First weeks of a ~100h course | Only for the full course | 8 to 11 | The only pick here that needs no typing at all, taught by the team behind the best-known intro course in computing | Start free |
| 3 | Intro to HTML/CSS: Making Webpages | Khan Academy | ~8h | No | 9 to 13 | The shortest route to a page your child can show someone, and the one skill here a non-coding parent can still check by looking | Start free |
| 4 | Intro to Python Programming | Khan Academy | ~15h | No | 11 to 13 | The cleanest bridge from blocks to typed code: the same platform they already know, but now they are writing real Python | Start free |
| 5 | Learn Python 3 | Codecademy | ~25h | No, free tier | 13+ | The best guided experience for a teen working alone: every answer is checked, so they cannot get quietly lost | Start free |
| 6 | Responsive Web Design | freeCodeCamp | ~300h | Yes, free | 14+ | The first pick that ends with something official: a free certificate and 20 finished projects, which is a real line on a college application | Start free |
| 7 | JavaScript Algorithms and Data Structures | freeCodeCamp | ~300h | Yes, free | 15 to 17 | The deepest free course a teenager can finish alone, and a second free certificate from a platform they already know | Start free |
| 8 | Foundations Path | The Odin Project | ~80h | No | 16 to 18 | Nothing free gets a teenager closer to how the job actually works, and nothing here will frustrate them faster | Start free |
Pick your path by age
| Age | Start with | Why this one | Then go to |
|---|---|---|---|
| 6 to 8, not reading fluently yet | Nothing on this list | Every course we rank assumes a fluent reader. At this age ScratchJr and the Hour of Code puzzles at code.org are the right answer, and neither is a course in the sense this list means | Come back at 8 or 9 and start at row 1 or row 2 |
| 8 to 11, block-based | CS50's Scratch course, or Khan Academy's JavaScript course if they already type well | No syntax to get wrong, so the entire session goes on logic and storytelling instead of hunting for a missing bracket | Intro to HTML/CSS |
| 11 to 13, the bridge | Intro to Python Programming | This is the age blocks start to feel childish. Same platform they already know, but now they type real code | Learn Python 3 |
| 13 to 15, guided text-based | Learn Python 3 | Instant checking on every exercise, which matters when there is no teacher in the room and no parent who can read the code | Responsive Web Design |
| 15 to 18, certificate or real workflow | Responsive Web Design, then JavaScript Algorithms | The only free certificates on this page, plus 20 finished projects an admissions officer can actually click | The Odin Project's Foundations path |
1. Intro to JavaScript: Drawing and Animation (Khan Academy)
2. Introduction to Programming with Scratch (Harvard CS50)
3. Intro to HTML/CSS: Making Webpages (Khan Academy)
4. Intro to Python Programming (Khan Academy)
5. Learn Python 3 (Codecademy)
6. Responsive Web Design (freeCodeCamp)
7. JavaScript Algorithms and Data Structures (freeCodeCamp)
8. Foundations Path (The Odin Project)
How to structure coding practice at home
A quick word on safety
What comes after these free courses?
Our verdict
FAQ