Guide
khan-academy
cs50
codecademy

Best Free Coding Courses for Kids 2026: 8 Ranked Picks by Age

Your child wants to learn coding and you want to know what is free, safe, and worth their time. Here are 8 free courses ranked for kids and teens in 2026, sorted by age band, with the real hours, which two give a certificate, and an honest limitation for each.
18 min read2026-07-07All guides →

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.

Your child wants to learn coding and you want to know what is actually free, safe, and worth their time. Here is the short version. For a child of roughly 8 to 11, start with CS50's Introduction to Programming with Scratch or Khan Academy's Intro to JavaScript. Both are free, both run in a browser, and neither asks a young child to fight with syntax before they have built anything. If you are picking between the two, the CS50 and Khan Academy comparison covers how each one treats a learner starting from zero. For a teenager of 13 and up, go straight to Codecademy's Learn Python 3 or freeCodeCamp's Responsive Web Design. These teach the same text-based languages professional developers use, and freeCodeCamp hands over a real certificate at the end at no cost. Match the starting point to the age and you avoid most of the frustration that makes kids quit. Get it wrong in either direction and you lose them. A 16-year-old handed drag-and-drop blocks feels patronised. A 9-year-old dropped into a 300-hour text-based curriculum stops in week one and decides coding is not for them. This guide ranks eight free courses from our catalog against that one constraint. Every course here costs nothing, needs no card, and runs in a web browser on a school laptop. We say which two give a certificate and which six do not, roughly how many hours each really takes, and who each one is wrong for. One number worth knowing before you start. Scratch, the block-based language built by the MIT Media Lab and the basis of our number two pick, has more than 100 million registered users, most of them children (source: Scratch statistics, scratch.mit.edu/statistics). Block-based coding is not a toy version of the real thing. It is how a very large number of children genuinely learn to program, and it is completely free.

How we ranked these courses for kids

The ranking is not "which course is best." It is "which course is best for a child of a particular age who has never written a line of code." Four things decided the order, in this priority. First, it fits the child's actual age band. This outranks everything else, including raw course quality. freeCodeCamp's JavaScript Algorithms and Data Structures is a better course than Khan Academy's Intro to JavaScript by almost any measure, and it ranks seventh while Khan Academy ranks first, because 300 hours of algorithm practice is the wrong thing to hand a 10-year-old. A course your child abandons in week two teaches them nothing except that they are bad at this. Second, no typing required until the learner is ready for it. For the youngest band, block-based tools rank ahead of text-based ones. A 9-year-old still hunting for keys on the keyboard will spend the whole session fixing typos instead of thinking about logic. For teens the criterion reverses: once a child types comfortably, blocks become a ceiling, and typed code is the entire point. Third, it produces something visible fast. This matters more for a child than for an adult. An adult learning to code has a reason outside the screen, a career change or a raise, and can push through three dull weeks on that. A child has curiosity and nothing else, and curiosity has a short shelf life. Khan Academy's drawing course ranks first partly because a kid sees a shape they made inside ten minutes. Fourth, where it leads next. A course that ends and hands your child nowhere to go is worth less than one that sets up the next step. This is why the three Khan Academy courses rank high despite giving no certificate at all: they hand off cleanly into Codecademy and freeCodeCamp, and the whole sequence stays free from age 8 to age 18. What we did not weight: brand names, and marketing claims about ages. Several platforms advertise "ages 5 and up" on material that plainly needs a fluent reader. We went by what the course actually asks a child to do. One honest gap in this list. Nothing here suits a child under about 8. Our catalog covers free courses for people learning to code seriously, and the pre-reader tools that work for a 5 or 6-year-old (ScratchJr, and the Hour of Code puzzles at code.org) are not courses in that sense, so they are not ranked below. They are still the right answer at that age. Come back to this list when your child reads fluently. Hours in the table come from our own catalog and are a rough signal only. Platforms count them differently, and a child works slower than the adult those estimates assume. Read the hours as shape, not as a promise.

The 8 best free coding courses for kids and teens, ranked

Eight free courses, ordered by how well they serve a child or teen starting from zero. The reason column is the actual reason the course sits at that rank, not a summary of its syllabus.
RankCoursePlatformHoursCertificateAgeWhy it ranks hereCTA
1Intro to JavaScript: Drawing and AnimationKhan Academy~10hNo8+The fastest visible payoff on this page: a shape your child drew with code inside ten minutes, and the code is real JavaScriptStart free
2Introduction to Programming with ScratchHarvard CS50First weeks of a ~100h courseOnly for the full course8 to 11The only pick here that needs no typing at all, taught by the team behind the best-known intro course in computingStart free
3Intro to HTML/CSS: Making WebpagesKhan Academy~8hNo9 to 13The shortest route to a page your child can show someone, and the one skill here a non-coding parent can still check by lookingStart free
4Intro to Python ProgrammingKhan Academy~15hNo11 to 13The cleanest bridge from blocks to typed code: the same platform they already know, but now they are writing real PythonStart free
5Learn Python 3Codecademy~25hNo, free tier13+The best guided experience for a teen working alone: every answer is checked, so they cannot get quietly lostStart free
6Responsive Web DesignfreeCodeCamp~300hYes, free14+The first pick that ends with something official: a free certificate and 20 finished projects, which is a real line on a college applicationStart free
7JavaScript Algorithms and Data StructuresfreeCodeCamp~300hYes, free15 to 17The deepest free course a teenager can finish alone, and a second free certificate from a platform they already knowStart free
8Foundations PathThe Odin Project~80hNo16 to 18Nothing free gets a teenager closer to how the job actually works, and nothing here will frustrate them fasterStart free
Two rows decide most families. If your child is under 12, take number 1 or number 2 and ignore the rest of the list for now. If your child is 14 or over and wants something to show for the time, take number 6. Everything else fits a specific situation, and the age table below sorts that out. Notice what the certificate column says. Six of the eight give your child nothing official at the end, and that is fine. Under about 14 a certificate is worth very little to anyone, and the projects your child builds are the real record. The column starts to matter at row 6, which is exactly the age it starts to matter in life.

Pick your path by age

Rank order is a default, not an instruction. Your child's age and reading ability decide more than the ranking does, so find your row here first.
AgeStart withWhy this oneThen go to
6 to 8, not reading fluently yetNothing on this listEvery 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 meansCome back at 8 or 9 and start at row 1 or row 2
8 to 11, block-basedCS50's Scratch course, or Khan Academy's JavaScript course if they already type wellNo syntax to get wrong, so the entire session goes on logic and storytelling instead of hunting for a missing bracketIntro to HTML/CSS
11 to 13, the bridgeIntro to Python ProgrammingThis is the age blocks start to feel childish. Same platform they already know, but now they type real codeLearn Python 3
13 to 15, guided text-basedLearn Python 3Instant checking on every exercise, which matters when there is no teacher in the room and no parent who can read the codeResponsive Web Design
15 to 18, certificate or real workflowResponsive Web Design, then JavaScript AlgorithmsThe only free certificates on this page, plus 20 finished projects an admissions officer can actually clickThe Odin Project's Foundations path
One rule cuts across the whole table: move your child up a band when they get bored, not when they have a birthday. A 10-year-old who has built fifteen Scratch projects and is asking how to make a website is ready for row 3 whatever the age column says. A bored 14-year-old who has never coded should still start at row 1, and will finish it in a weekend. The bands describe reading and typing ability, not maturity. If you want a wider set of picks written for this audience, our page for kids and teens covers it. And if you are learning alongside your child, how to learn to code for free is the adult version of this guide.

1. Intro to JavaScript: Drawing and Animation (Khan Academy)

Intro to JavaScript: Drawing and Animation is the best default first course on this page for any child from about 8 upward, and the reason is the first ten minutes. Your child types one line and a circle appears. Not a passed test, not a green tick: a circle they made. What your child can do after it: write JavaScript that draws shapes, colours them, animates them, and reacts to the mouse. They will understand variables, loops, functions, and conditionals, which are the four ideas every programming language is built on. The code sits on one side of the screen and the drawing on the other, so cause and effect is never more than a second apart. Who it is for: a child who can read and type at least slowly, anywhere from 8 to 15. Who should skip it: a child who does not read fluently yet, and a teenager who has already written code and wants depth, who should go to row 5 or row 6 instead. Honest limitation: it teaches JavaScript inside Khan Academy's own drawing environment, not the JavaScript that runs a real website. That is a fair trade at this age, but the skills do not transfer straight across. Your child will need Intro to HTML/CSS or Responsive Web Design before they can build a page that works on the open web.

2. Introduction to Programming with Scratch (Harvard CS50)

CS50's Introduction to Programming with Scratch is the right pick for a younger child, roughly 8 to 11, who is not ready to type. Scratch is a language where you drag coloured blocks and snap them together, so there is no syntax to get wrong and no such thing as a typo. Read our catalog entry for this one carefully, because the record is confusing and we would rather say so than paper over it. This is Harvard CS50's Scratch material, the opening unit of CS50x, their well-known introduction to computer science. Our catalog files it under Java and gives it CS50x's full 100-hour length, and neither of those describes what a child at this age should do with it. Treat it as "watch the Scratch lectures and build the Scratch projects," which is a few weeks of comfortable work. Do not read it as a 100-hour curriculum for a 9-year-old, and do not expect any Java. What your child can do after it: build a game or an animated story with characters, a score, and sound, and explain what a loop and a conditional are without using either word. Who it is for: a child who cannot yet type quickly, or one who tried text-based coding and bounced off it. Who should skip it: any teenager. It will feel babyish and they will say so. Honest limitation: the certificate belongs to the full CS50x course, not to the Scratch weeks, so your child gets nothing official for doing the part we are recommending. There is also no progress report for a parent to check, so you will have to look at what they built and ask them about it.

3. Intro to HTML/CSS: Making Webpages (Khan Academy)

Intro to HTML/CSS: Making Webpages is the fastest route on this page to a thing your child can show somebody. Eight hours, and at the end they have a real web page with their own words, their own colours, and their own pictures on it. What your child can do after it: write HTML tags and structure a page, style it with CSS, change fonts and colours and spacing, and understand how a browser turns markup into what you see. This is the one skill on this list a parent who has never coded can still check, because you can look at the page and see whether it came out right. Who it is for: a child of about 9 to 13, and specifically the child who keeps asking to make "a website" rather than "a game." It also works well as a second course straight after row 1. Who should skip it: a teenager aiming at a certificate or a portfolio, who should start at row 6 and get the same material with something official at the end. Honest limitation: eight hours is short, and it stops before anything interactive. Your child will be able to make a page that looks good and does nothing. That is the right place to stop at this age, but expect the question "how do I make the button work?" and have Intro to Python Programming or Responsive Web Design ready when it comes.

4. Intro to Python Programming (Khan Academy)

Intro to Python Programming is the bridge course, and 11 to 13 is the age it is built for. This is when blocks start to feel childish but a 300-hour curriculum is still too much to ask. Fifteen hours of short lessons on a platform your child already knows is the gentlest way across that gap. What your child can do after it: write Python using variables, data types, conditionals, loops, and functions, and read someone else's simple Python and follow what it does. Python is a good first typed language at this age because the syntax reads close to English and it forgives more than most. Who it is for: a tween who has done Scratch or the Khan Academy drawing course and is ready to type real code, and any child whose school teaches Python, which many now do. Who should skip it: a child still hunting for keys on the keyboard, and a 15-year-old who wants depth, since fifteen hours will not hold them for long. Honest limitation: fifteen hours gets your child to the end of the basics and no further. There is no project, nothing to deploy, and no certificate. It is a stepping stone by design, so line up the next course before they finish this one. Learn Python 3 is the natural follow-on, and our Python hub has the rest of the free options.

5. Learn Python 3 (Codecademy)

Codecademy's Learn Python 3 is the best guided experience on this page for a teenager of 13 and up. Twenty-five hours, everything runs in the browser, and every exercise gets checked the moment they submit it. What your teen can do after it: write Python with functions, loops, lists, dictionaries, and classes, work with files, and structure a program longer than a single screen. That is enough to automate something small and real, which is usually the moment a teenager decides this is worth their time. Who it is for: a teen who wants to learn on their own but will quietly drift if nothing tells them when they got it wrong. The instant feedback is the whole argument for this course. It also suits a teen taking Python at school who wants extra practice on the same material. Who should skip it: a younger child, since the writing assumes a teen or adult reader, and a teen who specifically wants to build websites, who should take row 6 instead. Honest limitation: Codecademy's free tier gives you the core lessons and holds the projects, the quizzes, and the certificate behind a paid plan. Your teen can finish the course for nothing, but they finish with no credential and less practice than the course was designed around. Pair it with a project of their own choosing. Our Codecademy profile covers what the free tier does and does not include.

6. Responsive Web Design (freeCodeCamp)

Responsive Web Design is the first pick on this page that ends with something official, and for a teenager of 14 and up that changes the calculation. The certificate is genuinely free: no application, no trial, no card. What your teen can do after it: hand-write HTML and CSS well enough to build a multi-page site that works properly on a phone, use flexbox and CSS grid, and build accessible forms. The certification is structured around 20 projects they build themselves, from a survey form to a personal portfolio page, so they finish with work to show rather than a completion percentage. Who it is for: a teen of 14 or over who wants a real credential and a portfolio, and especially one thinking about college applications or a first summer job. Twenty finished projects and a verifiable certificate is a better answer to "what do you do outside school" than most things available at that age. Who should skip it: anyone under about 13. It is not written for children, and 300 hours is a long road for someone who is not sure yet. Honest limitation: 300 hours is genuinely 300 hours, and nobody chases your teen if they stop. No deadline, no instructor, no email asking where they went. This is the course where a parent checking in once a week makes the biggest difference to whether it gets finished. More on the platform at our freeCodeCamp profile.

7. JavaScript Algorithms and Data Structures (freeCodeCamp)

JavaScript Algorithms and Data Structures is the deepest thing on this page a teenager can realistically finish alone, and it is a second free certificate from the same platform as row 6. What your teen can do after it: write real JavaScript with modern ES6 syntax, use regular expressions, debug their own code, work with data structures, and understand both object-oriented and functional styles. They come out able to write the logic behind a working web application, not just the look of it. Who it is for: a motivated 15 to 17-year-old who has already finished something substantial, ideally row 6, and wants depth rather than another taster. A teen who completes both freeCodeCamp certifications has skills people get paid for, and a few do get paid for them before they leave school. Who should skip it: a first-timer of any age. Starting here instead of at row 6 is the single most common way a teenager quits. Honest limitation: the algorithm sections are hard, and there is a stretch in the middle where progress feels slow and nothing visible gets built. That is where most people stop. It helps a lot if your teen has someone to talk to about it, whether that is a school club, the freeCodeCamp forum, or a parent willing to sit through an explanation they do not follow. Browse more at our JavaScript hub.

8. Foundations Path (The Odin Project)

The Odin Project's Foundations path ranks eighth, and the ranking is about fit, not quality. For the right 16 to 18-year-old this is the best thing on the page. For everyone else it is the fastest route to giving up. What your teen can do after it: set up a working development environment on their own machine, use Git and GitHub the way a team does, write JavaScript that changes a page, and deploy a project to a live URL they can send to someone. That last part is the one that matters. A link to something working beats a certificate in most first conversations. Who it is for: a teen who is genuinely stubborn, has finished something else first, and wants to be a developer rather than to have tried coding once. Who should skip it: everyone under about 16, and any teen who needs milestones and encouragement to keep going. Send them to row 6 first and come back in a year. Honest limitation: the setup is a wall and it is the first thing they hit. Installing a working environment can eat a week before a single line of their own code gets written, and there is no certificate at the end to soften that. If your teen bounces off it, that is the expected outcome and not a verdict on them. More at our Odin Project profile.

How to structure coding practice at home

You do not need to know how to code to help your child stick with it. A few habits matter more than which course you picked. Keep sessions short. Thirty focused minutes a few times a week beats a three-hour marathon that ends in tears. Coding is mentally tiring, and young kids especially burn out fast. Make it project-based. A child building a game they care about will push through a hard bug. A child working through lessons with no goal usually quits. Ask what they want to make, then find the course that gets them there. Let them get stuck. The instinct is to jump in and fix it. Hold off for a few minutes. Working through a problem, even a small one, is where the real learning happens. Your job is encouragement, not answers. Sit with them sometimes. You do not have to understand the code. Asking your child to explain what they built teaches them to think clearly, and it shows them you care what they are doing. Match the check-in to the course. Rows 1 to 4 are short enough that a child will finish them on interest alone. Rows 6 and 7 are 300 hours each with nobody chasing your teen, and that is where a weekly "show me what you did" makes the difference between finished and abandoned.

A quick word on safety

The coding itself is safe. The comment sections are where you want a light hand on the controls. Three of the eight courses here come with community features. Scratch has a large project-sharing site where children remix each other's work and leave comments. freeCodeCamp has a public forum. Codecademy has discussion attached to its lessons. All three are moderated, and all three are also the internet. For a child under about 12, the practical settings are simple. Keep the account under your email address rather than theirs, so password resets and notifications land with you. On Scratch, the account settings let you control commenting, and Scratch's moderation team removes reported content, but a comment can sit there a while before anyone reports it. If you are not going to read the comments on your child's projects, turn commenting off. For a teenager the calculation changes, and the forums become genuinely useful. Getting unstuck by asking a stranger a well-written question is a real skill, and it is one of the things freeCodeCamp does well. The thing worth saying out loud to a 14-year-old is the ordinary one: no real name, no school, no photos, no meeting anyone. Two other things parents ask about. None of these eight courses needs a payment method, so there is nothing to buy by accident, and Codecademy's free tier is the only one that will nudge your teen toward a paid plan. And none of them require installing software except row 8, which needs a real development setup on the machine. If you are handing over a locked-down school laptop, rows 1 to 7 all work in a browser tab.

What comes after these free courses?

Here is the part parents underestimate. A teen who finishes freeCodeCamp's Responsive Web Design certification or The Odin Project's Foundations path is not just playing around. They have real, in-demand skills. Some teens use them to build websites for local businesses, freelance, or contribute to open-source projects before they finish school. Others walk into a university computer science course already knowing how to code, which puts them ahead of most of their classmates. None of this requires paying for a bootcamp or an online academy. The free courses here cover the same ground the paid ones do. The path forward is simple: keep building projects, learn the next thing when the current one clicks, and let the portfolio grow. Real skills and a body of work matter far more than any certificate money can buy. When your teen wants a plan rather than another course, our web developer learning path sequences the whole thing step by step, and the web developer roadmap shows what to learn in what order and why each piece matters.

Our verdict

For a child of 8 to 11, start with Khan Academy's Intro to JavaScript if they type reasonably, or CS50's Scratch course if they do not. Both are free, both are safe, and both are built to make a young child feel like a maker rather than a student. For 11 to 13, Intro to HTML/CSS and then Intro to Python Programming carry them across from blocks to typed code without a jump that loses them. For 13 and up, Codecademy's Learn Python 3 is the best guided next step, and from 14 freeCodeCamp's Responsive Web Design is the strongest pick on the whole page: free certificate, 20 real projects, nothing to install. Add JavaScript Algorithms and Data Structures at 15 or 16 if they want depth, and The Odin Project at 16 or over only if they are stubborn enough to enjoy it. You do not need to spend a cent, and you do not need to know how to code yourself. Pick by the age band rather than the ranking, keep the sessions short and project-based, and let your child build things they actually care about. For a wider set of kid and teen picks, see our audience guide for kids and teens. If you are learning alongside your child or starting from zero yourself, our guide on how to learn to code for free covers the adult path.

FAQ

Frequently Asked Questions

What age can kids start coding?

Children as young as 6 to 7 can start with block-based tools like Scratch, where they drag and snap blocks instead of typing. Text-based coding in Python or JavaScript usually fits better from age 10 to 12, once a child can type comfortably and read fluently. There is no single right age. Follow your child's interest rather than a calendar.

Is Khan Academy or Scratch better for a first-time young coder?

Both are visual and both are free, so it comes down to typing. CS50's Scratch course stays block-based the whole way through, so a child who is still slow on the keyboard never has to fight the syntax. Khan Academy's Intro to JavaScript moves into typed code almost immediately, which suits a child who types comfortably and gives a faster payoff since they see a drawing they made in the first ten minutes. Rough rule: under 10 or a slow typist, pick Scratch; 10 and up and comfortable on a keyboard, pick Khan Academy.

Do any of these give my teen a real certificate?

Two of the eight do. freeCodeCamp's Responsive Web Design and JavaScript Algorithms and Data Structures both award a free, verifiable certificate when your teen finishes, with no payment and no application. The other six do not. Khan Academy issues no certificates at all, Codecademy keeps its certificate on the paid tier, The Odin Project deliberately gives none, and the CS50 certificate is for finishing the full CS50x course rather than the Scratch weeks we recommend for a young child.

Is Scratch free?

Yes. Scratch is completely free with no paid tier. It is made by the MIT Media Lab and runs in any web browser at scratch.mit.edu, with no cost for accounts, projects, or the shared community library. You do need a parent email to create an account for a young child.

What is the best free coding platform for kids?

Khan Academy is the best free platform for kids overall: three of our eight ranked courses are theirs, they cover the whole span from a first drawing in JavaScript to typed Python, and everything runs in a browser with no account cost. For a child too young to type, Harvard CS50's Scratch course is the better start. For teens 14 and up, freeCodeCamp is the best platform because it is self-paced, browser-based, and the only one here with free certificates.

How long do these courses actually take a child?

The short ones are genuinely short: Khan Academy's HTML/CSS course is about 8 hours, the JavaScript drawing course about 10, and the Python course about 15. A child doing 30 minutes a few times a week will finish any of them inside a couple of months. Codecademy's Learn Python 3 is about 25 hours. The two freeCodeCamp certifications are around 300 hours each, which is a year of steady after-school work, and The Odin Project's Foundations path is about 80. Treat all of these as rough: a child works slower than the adult these estimates assume.

How do I teach my child to code for free?

You don't need to know how to code yourself. Pick a course that fits your child's age (Khan Academy or CS50's Scratch course under 12, Codecademy or freeCodeCamp for teens), keep sessions to about 30 minutes a few times a week, and let your child build a project they care about instead of grinding through lessons. Ask them to explain what they made.

Are there free coding courses for teens?

Yes, and they are strong. Codecademy's Learn Python 3, freeCodeCamp's two certifications, and The Odin Project's Foundations path are all completely free and teach the same skills professional developers use. A motivated teen who finishes one of these has real, employable skills, no paid bootcamp required.

What if my teen wants to keep going past these courses?

Move them from courses to a plan. Our web developer learning path at /learn/web-developer sequences what to do after freeCodeCamp or The Odin Project, and the roadmap at /roadmap/web-developer shows the order to learn things in and why each piece matters. The practical next step after Foundations is building and deploying two or three projects of their own design, since that is what people actually look at.

Courses in this guide

Recommended Courses

PythonBeginner

Learn Python 3

Codecademy's interactive Python course teaches you the basics from scratch. Write and run code in your browser, learn syntax, functions, control flow, lists, loops, and more.

Rating 4.625hDetails →

JavaScriptBeginner

Foundations Path

The Odin Project's Foundations path takes you from zero to a working understanding of HTML, CSS, and JavaScript. Project-based learning with real code you build and can show to employers.

Rating 4.980hDetails →

Keep reading

More Guides

All guides →