Coding

Kids coding languages by age: what to learn first, from 5 to 18

Which coding language should your child learn first? A clear by-age table from 5 to 18, an honest Scratch vs Python call, and the signs it's time to type.

The Educifly team

·

·

13 min read

Illustration of kids coding languages by age: picture blocks for ages 5 to 7, Scratch-style blocks for ages 7 to 10, and Python and JavaScript code for ages 12 and up, with a blue robot.

The best kids coding languages depend on age and reading. Ages 5 to 7 start with ScratchJr picture blocks. Ages 7 to 10 use Scratch word blocks. At about 12, most kids move to typed code: Python first, or JavaScript for websites. Teens then add a second language, picked by goal.

Which coding language should my child learn first?

Most kids should start with blocks, then move to Python. Each step uses skills from the one before it. We checked each tool’s age advice on its own website.

The short version:

  • Ages 5 to 7: ScratchJr. The blocks are pictures, so no reading is needed.

  • Ages 7 to 10: Scratch. The blocks have short words on them.

  • Ages 10 to 13: still blocks, but for real things, like phone apps in MIT App Inventor.

  • About 12 and up: Python is the best programming language for kids who are ready to type. JavaScript is a good pick if they mostly want to make websites.

  • Teens: one more typed language, chosen by what they want to make.

These are the basic programming languages for kids.

New to all this? Read what coding is first. It explains the big ideas in plain words.

What are the best kids coding languages by age?

The right language grows with your child’s reading and typing. Coding languages for kids come in two kinds: blocks you snap together, and code you type. Use this table to match an age to a language, a tool and the kind of thing kids make.

Age

Blocks or typing?

Language or tool

What kids make, for example

5–7

Picture blocks, no reading needed

ScratchJr, plus step-by-step games away from the screen

A story where a cat walks and talks, a character that jumps when tapped

7–10

Word blocks

Scratch, or PictoBlox (built on Scratch 3.0)

A chase game, a quiz, an animated birthday card

9–11

Blocks, plus simple AI

Scratch-style blocks with Teachable Machine or PictoBlox’s AI blocks

A game you play by waving your hand, a sorter that tells apples from bananas

10–13

Blocks for phones and gadgets

MIT App Inventor, Microsoft MakeCode

A quiz app for a phone, a step counter on a micro:bit

12–14

First typed code, for the web

HTML, CSS and JavaScript

An “all about me” website, a click-the-button game

12–16

First typed programming language

Python

A number-guessing game, a drawing made with code, a chart from real data

13–17

Python, plus AI tools

Python with AI tools, like scikit-learn

A program that sorts photos by what’s in them

14–18

A second, stricter language

Java, C#, C++ or Swift, picked by goal

A 3D game, a web app with a login, an app for a phone

Ages are a guide, not a rule. A strong reader of 9 may be ready for more. A 12-year-old who has never coded can still start with blocks for a few weeks.

What is block coding for kids?

Block coding for kids is a way to write programs by snapping blocks together instead of typing. Each block is one command, like “move 10 steps” or “repeat 5 times”. Kids stack the blocks to make a character move, talk or keep score.

You’ll also hear it called block programming, block-based coding or visual programming for kids. They all mean the same thing.

Block coding takes away spelling and typing mistakes. A block fits, or it doesn’t. So kids spend their time on the thinking: what happens first, what repeats, and what to check.

Is block coding real coding?

Yes. Blocks use the same big ideas as typed code: loops, if-then rules, variables and events. Scratch’s page for parents calls Scratch “a free programming language”. The Scratch Foundation says 200 million kids create on Scratch.

Harvard’s free CS50 course even starts with Scratch in its first week. Then it moves on to a typed language called C, and later to Python. That’s a university course, and it still begins with blocks.

Which block coding tools are there, and what ages are they for?

ScratchJr’s own site says it’s for ages 5 to 7, and it’s a free app. Scratch’s page for parents says Scratch is “designed especially for young people ages 8 to 16”. It suggests ScratchJr for younger children. A 7-year-old who reads well can often start Scratch a little early.

Here’s what each tool’s maker says, side by side.

Tool

What it is

Who it’s for, says the maker

Can kids see typed code too?

ScratchJr

A free app with picture blocks

Ages 5 to 7

No

Scratch

Word blocks, plus an online community

Ages 8 to 16

No

PictoBlox

Blocks built on Scratch 3.0, with AI blocks

Kids and teens. Free for personal use.

Yes, a separate Python mode

MIT App Inventor

Blocks for making phone apps

Everyone, children included

No

Microsoft MakeCode

Blocks for gadgets like the micro:bit

No age given

Yes, JavaScript and Python

Blockly

Not an app. It’s the code library many block tools are built on.

Developers. Kids use tools built on it.

It helps other tools turn blocks into code

Many lists call Blockly a kids’ language and give it an age. That’s a mix-up. Blockly’s own docs call it a library for building block editors. It’s now an open source project of the Raspberry Pi Foundation, supported by Google. Microsoft’s MakeCode site says its editor is built on Blockly.

MIT App Inventor needs a sign-in. For a child under 13, set up and keep the account yourself.

MakeCode is worth a look for a curious 10-year-old. Its site says the blocks “map directly to actual lines of code”. Kids can open the typed version and see the same program. Programs also run on an on-screen simulator, so you don’t need the board to start.

Should kids start with blocks or typing?

Start with blocks if your child is under about 10. Start with typing if they’re about 11 or 12, read well and can type a little. In between, let their reading decide.

Each way has a cost:

  • Blocks first: quick wins, no spelling errors, and fun from the first day. The catch is that big projects get messy, and some older kids find blocks babyish.

  • Typing first: it feels “real” to older kids and leads straight to bigger projects. The catch is that one missing bracket stops the whole program. That can put a young child off.

Scratch or Python first?

Scratch first for most kids under 11. Python first for most kids 12 and up. A 10- or 11-year-old who reads well and has made a few Scratch games can try Python.

Scratch and Python teach the same ideas. Scratch takes the typing away, so a young child can focus on the ideas. Python adds the typing back, which older kids handle well and often prefer.

Python’s own site says it “can be easy to pick up” for a first-time programmer. It’s free to download and use. It’s also popular. Python is number 1 on the TIOBE Index, a monthly ranking of languages, as we write this.

JavaScript or Python first?

Python first, for most kids. JavaScript first if your child mostly wants to make websites. Both are real languages that grown-up programmers use every day.

The difference shows up in the symbols. Here’s the same small program three ways. It adds 1 to a score five times. Then it says “You win!” if the score is more than 3.

In Scratch blocks:

when green flag clicked
set score to 0
repeat 5
    change score by 1
if score > 3 then
    say You win!
when green flag clicked
set score to 0
repeat 5
    change score by 1
if score > 3 then
    say You win!
when green flag clicked
set score to 0
repeat 5
    change score by 1
if score > 3 then
    say You win!

In Python:

score = 0
for turn in range(5):
    score = score + 1
if score > 3:
    print("You win!")
score = 0
for turn in range(5):
    score = score + 1
if score > 3:
    print("You win!")
score = 0
for turn in range(5):
    score = score + 1
if score > 3:
    print("You win!")

In JavaScript:

let score = 0;
for (let turn = 0; turn < 5; turn++) {
  score = score + 1;
}
if (score > 3) {
  console.log("You win!");
}
let score = 0;
for (let turn = 0; turn < 5; turn++) {
  score = score + 1;
}
if (score > 3) {
  console.log("You win!");
}
let score = 0;
for (let turn = 0; turn < 5; turn++) {
  score = score + 1;
}
if (score > 3) {
  console.log("You win!");
}

The Python version has 5 lines, with no curly brackets and no semicolons. The JavaScript version has 7 lines, with 4 curly brackets and 5 semicolons. Each extra symbol is one more thing a child can forget. Forget one, and the program won’t run.

JavaScript has one big plus. It runs in every web browser, so kids see their work on a real web page straight away. That’s why we’d pick it first for a child who lives for websites.

When is a child ready to move from blocks to typing?

Most kids are ready to move from blocks to typing at about 12. Some are ready at 10 or 11. Watch for these signs, not the birthday.

Signs it’s time to move on:

  • They make their own projects in blocks, not just copy tutorials.

  • They use loops, if-then blocks and variables without help.

  • Their projects have so many blocks that they scroll around to find things.

  • They ask how “real” games and apps are made.

  • They read well on their own and can type short words without hunting for keys.

  • They can stick with a bug for 10 minutes before asking for help.

Four or more of these? They’re likely ready.

Signs it’s still too soon:

  • They need help reading the words on Scratch blocks.

  • Small mistakes make them want to quit.

  • They haven’t finished a block project of their own yet.

The switch doesn’t have to happen in one go. MakeCode shows the same program as blocks or typed code, so kids can peek at the typed version while the blocks are still there. PictoBlox has a separate Python mode, says STEMpedia, its maker. Its blocks don’t turn into Python, but kids can try typing in a tool they already know.

For ways to help at home, see our guide on how to teach kids coding.

What are the best advanced coding languages for teens?

The best advanced coding languages for teens are the ones that fit a project they care about. Most teens should get good at one typed language first, usually Python or JavaScript. Then they add a second one for a goal.

If your teen wants to…

Learn next

Why

Make websites and web apps

JavaScript, with HTML and CSS

JavaScript runs in every web browser.

Take AP Computer Science A

Java

The College Board says the course uses a subset of Java.

Make 3D games

C#, with the Unity game engine

Unity’s own scripting guides are for C#.

Make Roblox games

Luau

Roblox’s docs say Luau comes from a language called Lua. It’s what Roblox Studio uses.

Work with data

SQL, with Python

SQL asks questions of a database. Harvard’s CS50 teaches it right after Python.

Make AI projects

More Python

Many popular AI tools are made for Python. The scikit-learn site says “Machine Learning in Python” at the top.

Make apps for iPhones and Macs

Swift

Apple says Swift works on all Apple platforms.

Write very fast code, or code for robots

C++

It’s fast and gives lots of control. It’s also the hardest language here.

A second language is much quicker to learn than the first. Loops, variables and if-then rules work the same way. Mostly, the spelling changes.

So don’t collect languages. A teen with one big Python project has more to show than one with five half-done tutorials.

At Educifly, teens work on websites, Python and AI projects in Python, one-to-one with a mentor. See our coding classes for teens.

Which mistakes should parents avoid when picking a first language?

The biggest mistake is starting too hard. Here are the ones we’d steer you away from:

  • Typed code at 6 or 7, because it looks more “real”. Blocks teach the same ideas without the spelling battle.

  • C++ or Java first, because they sound serious. They make great second languages. As first ones, they put many kids off.

  • Switching languages every few weeks. Each switch starts the basics again. Finish a few projects first.

  • Thinking HTML is all of coding. HTML tells a browser what’s on a page. On its own, it can’t repeat steps or make choices. JavaScript does that part.

  • Picking a language with no project in mind. Kids stick with coding when they’re making something they care about, like a game for a friend.

Questions parents ask about kids coding languages

What is the easiest programming language for kids?

ScratchJr is the easiest, because its blocks are pictures and need no reading. Scratch comes next, with short words on its blocks. For typed code, Python is a good easy programming language for kids. Its code reads close to plain English.

Can a 7-year-old learn Python?

Most 7-year-olds aren’t ready for Python yet. Typing and spelling get in the way of the ideas. Scratch teaches the same ideas with blocks. Most kids are ready for Python at about 12, and some at 10 or 11.

What is the best coding language for a 10-year-old?

For most 10-year-olds, it’s still Scratch, or a block tool for real projects, like MIT App Inventor for phone apps. A 10-year-old who reads well, types a little and has made a few Scratch games can try Python. MakeCode’s typed view is a gentle step in between.

Is HTML a programming language?

Not quite. HTML is a markup language. It tells a web browser what goes on a page, like headings and pictures. It can’t make choices or repeat steps. Kids usually learn it with CSS, which styles the page, and JavaScript, which adds the logic.

Is Roblox coding a good first step?

It can be, for a child who loves Roblox. Roblox games use Luau, which Roblox’s docs say comes from a language called Lua. It’s typed code, so it suits kids who read and type well. Roblox Studio needs a Roblox account, Roblox’s docs say, so set up Roblox’s parental controls first. Python makes a better first typed language for most kids, because it’s used for many more things.

Do kids need to learn more than one coding language?

Not at first. One block tool and one typed language is enough for most kids. The ideas carry over, so a second language comes much faster later. Teens often add one for a goal, like Java or C#.

Are kids coding languages free?

Most of the good ones are. Scratch, ScratchJr, Python and MIT App Inventor are free, their own websites say. PictoBlox is free for personal use. What costs money is help, like books, courses or a mentor.

Want help choosing your child’s first language?

Educifly runs live, one-to-one coding classes for ages 5 to 18. For ages 7 to 10, see Scratch coding for kids. From about 12, see our Python classes for kids. Each child has one mentor for the whole level. The mentor coaches, and doesn’t build the project for them.

Not sure where your child fits? Book a free 40-minute trial class. There’s no payment and no card. In the free class, the mentor finds the right starting level.

Book a free trial class

Related class

Python classes for kids

See what your child can build in 40 minutes

Book the free class. Your child meets their mentor and builds a small project. You get the right starting level and the exact price. Then you decide.

Ages 5–18 · Live and one-to-one · No payment needed

See you in class!