An Award-Winning Book Club for Kids
Shop Now

Coding And Programming: Books For Kids

Looking for a list of the best children's books about coding and programming?

Children’s literature has many notable options when it comes to coding and programming. To help you find the right books for you and your young reader, we’ve compiled a list of the best kids books about coding and programming.

Our list includes board books, picture books, and chapter books. Board books are best for babies and toddlers from ages newborn to 2 or 3. Picture books are generally great options for toddlers and for preschool and kindergarten age children. Picture books are especially enjoyable for adults to read aloud with young kids. The chapter books on our list are generally best for elementary through early middle school age tween kids. You can filter to sort by the best book type for your kid.

When it comes to children’s stories about coding and programming, there are a variety of titles. This list covers everything, from classics like Ada Byron Lovelace and the Thinking Machine to popular sellers like Secret Coders to some of our favorite hidden gems like Grace Hopper: Queen of Computer Code.

We hope this list of kids books about coding and programming can be a helpful resource for parents, teachers, and others searching for a new book!

Share this list
Add to list
Ada Lovelace
Written by Isabel Sanchez Vegara & illustrated by Zafouko Yamamoto
board book
Recommend Ages: 2-4

New, in the My First Little People, Big Dreams series: Introduce your littlest one to the world’s first computer programmer, Ada Lovelace. Told in simple sentences, this young reader edition of the best-selling series is perfect to read out loud to little dreamers. This empowering series celebrates the important life stories of wonderful women of the world – and is now in available in a board format for little hands! These books make the lives of these role models accessible for the youngest children, providing a powerful message to inspire the next generation of outstanding people who will change the world!

Buy book
$8.99
Bookshop
$7.64
Amazon
$7.52
Used $2.00
Prices as of Feb 28
Add to list
Grace Hopper: Queen of Computer Code
Written by Laurie Wallmark & illustrated by Katy Wu
picture book
Recommend Ages: 5-9

Who was Grace Hopper? A software tester, workplace jester, cherished mentor, ace inventor, avid reader, naval leader—AND rule breaker, chance taker, and troublemaker. Acclaimed picture book author Laurie Wallmark (Ada Byron Lovelace and the Thinking Machine) once again tells the riveting story of a trailblazing woman. Grace Hopper coined the term “computer bug” and taught computers to “speak English.” Throughout her life, Hopper succeeded in doing what no one had ever done before. Delighting in difficult ideas and in defying expectations, the insatiably curious Hopper truly was “Amazing Grace” . . . and a role model for science- and math-minded girls and boys. With a wealth of witty quotes, and richly detailed illustrations, this book brings Hopper’s incredible accomplishments to life.

Buy book
$16.95
Bookshop
$14.41
Amazon
$15.99
Used $5.65
Prices as of Feb 28
Add to list
Adi Sorts with Variables
Written by Caroline Karanja & illustrated by Ben William Whitehouse
picture book
Recommend Ages: 5-8

It’s time to clean Adi’s room! If only a computer could do it for her! That gives Adi and her best friend Gabi an idea-think like a coder! These scientific thinkers put on their computer coding caps and make cleaning up a snap by sorting with variables!

Buy book
$27.99
Bookshop
$23.79
Amazon
$27.99
Used $27.99
Prices as of Feb 28
Add to list
Margaret and the Moon: How Margaret Hamilton Saved the First Lunar Landing
Written by Dean Robbins & illustrated by Lucy Knisley
picture book
Recommend Ages: 4-8

A true story from one of the Women of NASA!

Margaret Hamilton loved numbers as a young girl. She knew how many miles it was to the moon (and how many back). She loved studying algebra and geometry and calculus and using math to solve problems in the outside world.

Soon math led her to MIT and then to helping NASA put a man on the moon! She handwrote code that would allow the spacecraft’s computer to solve any problems it might encounter. Apollo 8. Apollo 9. Apollo 10. Apollo 11. Without her code, none of those missions could have been completed.

Dean Robbins and Lucy Knisley deliver a lovely portrayal of a pioneer in her field who never stopped reaching for the stars.

Buy book
$17.99
Bookshop
$15.29
Amazon
$14.62
Used $5.48
Prices as of Feb 28
Add to list
Ada Lovelace, Poet of Science
Written by Diane Stanley & illustrated by Jessie Hartland
picture book
Recommend Ages: 4-8

From nonfiction stars Diane Stanley and Jessie Hartland comes a beautifully illustrated biography of Ada Lovelace, who is known as the first computer programmer.

Two hundred years ago, a daughter was born to the famous poet, Lord Byron, and his mathematical wife, Annabella.

Like her father, Ada had a vivid imagination and a creative gift for connecting ideas in original ways. Like her mother, she had a passion for science, math, and machines. It was a very good combination. Ada hoped that one day she could do something important with her creative and nimble mind.

A hundred years before the dawn of the digital age, Ada Lovelace envisioned the computer-driven world we know today. And in demonstrating how the machine would be coded, she wrote the first computer program. She would go down in history as Ada Lovelace, the first computer programmer.

Diane Stanley’s lyrical writing and Jessie Hartland’s vibrant illustrations capture the spirit of Ada Lovelace and bring her fascinating story vividly to life.

Buy book
$18.99
Bookshop
$16.14
Amazon
$15.49
Used $2.25
Prices as of Feb 28
Add to list
Add to list
Add to list
Add to list
  • Baby Code! Play - How do you explain coding in playtime to a baby? By showing how it’s all around them, and how they can take part in it, of course! By using items and experiences in a baby’s world, like an electric swing or a ride at the amusement park, this charming board book full of bright, colorful illustrations is the perfect introduction to coding in active play for babies and their caregivers–and is sure to leave them wanting to learn more!

  • How to Code a Sandcastle - All summer, Pearl has been trying to build the perfect sandcastle, but out-of-control Frisbees and mischievous puppies keep getting in the way! Pearl and her robot friend Pascal have one last chance, and this time, they’re going to use code to get the job done. Using fundamental computer coding concepts like sequences and loops, Pearl and Pascal are able to break down their sandcastle problem into small, manageable steps. If they can create working code, this could turn out to be the best beach day ever! With renowned computer science nonprofit Girls Who Code, Josh Funk and Sara Palacios use humor, relatable situations, and bright artwork to introduce kids to the fun of coding.

  • Ada Byron Lovelace and the Thinking Machine - Offers an illustrated telling of the story of Ada Byron Lovelace, from her early creative fascination with mathematics and science and her devastating bout with measles, to the ground-breaking algorithm she wrote for Charles Babbage’s analytical engine.

  • Baby Loves Coding - Big, brainy science for the littlest listeners Accurate enough to satisfy an expert, yet simple enough for baby, this clever board book showcases the use of logic, sequence, and patterns to solve problems. Can Baby think like a coder to fix her train? Beautiful, visually stimulating illustrations complement age-appropriate language to encourage baby’s sense of wonder. Parents and caregivers may learn a thing or two, as well!

Add to list
Monsters & Modules
Written & illustrated by Mike Holmes and Gene Luen Yang
chapter book
Recommend Ages: 8-11

From graphic novel superstar (and former computer programming teacher) and New York Times bestselling author Gene Luen Yang, Secret Coders: Monsters & Modules is the sixth and final volume in a wildly entertaining series that combines logic puzzles and basic coding instruction with a page-turning mystery plot!

The Coders always knew their programming skills would take them far, but they never guessed they would take them to another dimension! Or to be accurate, one dimension less--to save humanity, Hopper, Eni, and Josh must travel to Flatland, a dangerous two-dimensional world ruled by polygons. If they can return home safely with a turtle of light, they might just stand a chance in their final showdown with Dr. One-Zero!

Buy book
$10.99
Bookshop
$9.34
Amazon
$10.99
Used $10.99
Prices as of Feb 28
Add to list
Who Is Bill Gates?
chapter book
Recommend Ages: 8-12

Bill Gates, born in Seattle, Washington, in 1955, is an American business magnate, investor, philanthropist, and author. In this <i>Who Was…? </i>biography, children will learn of Gates’ childhood passion for computer technology, which led him to revolutionize personal computers. Through the success of his now-world-famous software company, Microsoft, Bill Gates became one of the wealthiest philanthropists in history.This fascinating story of a child technology genius is sure to captivate all audiences!

Buy book
$14.99
Bookshop
$12.74
Amazon
$10.78
Used $2.08
Prices as of Feb 28
Add to list
Code It! Create It!
Written by Sarah Hutt & illustrated by Brenna Vaughan
chapter book
Recommend Ages: 8-12

Girls can design the perfect coding-powered project for themselves in this informative, interactive book published in partnership with the nonprofit organization Girls Who Code that guides readers through the brainstorming process, provides inspiration, and teaches basic coding concepts. Illustrations. Consumable.

Buy book
$8.99
Bookshop
$7.64
Amazon
$7.99
Used $1.21
Prices as of Feb 28
Add to list
I Can Code: If/Then
Written by Vicky Fang & illustrated by Jade Orlando
board book
Recommend Ages: 0-3
Buy book
$8.99
Bookshop
$7.64
Amazon
$8.99
Used $8.99
Prices as of Feb 28
Add to list
Lights, Music, Code!
Written by Jo Whittemore
chapter book
Recommend Ages: 8-12

When Maya starts spending a lot of time with Maddie, an old friend, her friends from coding club worry she won’t finish her part of the project, coding the lights and music for the winter dance.

Buy book
$12.99
Bookshop
$11.04
Amazon
$11.79
Used $2.12
Prices as of Feb 28
Add to list
Add to list
Add to list
Add to list
  • Ada Lovelace - Meet Ada Lovelace, the British mathematician and daughter of poet Lord Byron. New in the Little People, Big Dreams series, this inspiring and informative little biography follows the colourful life of Lord Byron’s daughter, from her early love of logic, to her plans for the world’s first computer program. With stylish and quirky illustrations and extra facts at the back, this empowering series celebrates the important life stories of wonderful women of the world. From designers and artists to scientists, all of them went on to achieve incredible things, yet all of them began life as a little child with a dream. These books make the lives of these role models accessible for children, providing a powerful message to inspire the next generation of outstanding people who will change the world!

  • Potions & Parameters - From graphic novel superstar (and former computer programming teacher) and New York Times bestselling author Gene Luen Yang, Secret Coders: Potions & Parameters is the fifth volume in a wildly entertaining series that combines logic puzzles and basic coding instruction with a page-turning mystery plot! Dr. One-Zero won't stop until the whole town--no, the whole world--embraces the true happiness" found in his poisonous potion, Green Pop. And now that he has the Turtle of Light, he's virtually unstoppable. There's one weapon that can defeat him: another Turtle of Light. Unfortunately, they can only be found in another dimension! To open a portal to this new world, Hopper, Eni, and Josh's coding skills will be put to the test.

  • Secrets & Sequences - The third book in the Secret Coders series from Gene Luen Yang and Mike Holmes. Stately Academy is no ordinary school: it was once home to an elite institute where teachers, students, and robots worked together to unravel the mysteries of coding. Hopper, Eni, and Josh won't rest until they've learned the whole story, but they aren't the only ones interested in the school's past. Principal Dean is hot on their trail, demanding that the coders turn over their most powerful robot. Dean may be a creep, but he's nothing compared to the guy who's really in charge: a green-skinned coding genius named Professor One-Zero.

  • Ada's Ideas - Ada Lovelace (1815–1852) was the daughter of Lord Byron, a poet, and Anna Isabella Milbanke, a mathematician. Her parents separated when she was young, and her mother insisted on a logic-focused education, rejecting Byron’s “mad” love of poetry. But Ada remained fascinated with her father and considered mathematics “poetical science.” Via her friendship with inventor Charles Babbage, she became involved in “programming” his Analytical Engine, a precursor to the computer, thus becoming the world’s first computer programmer. This picture book biography of Ada Lovelace is a compelling portrait of a woman who saw the potential for numbers to make art.

Add to list
Robots & Repeats
Written & illustrated by Mike Holmes and Gene Luen Yang
chapter book
Recommend Ages: 8-12

Dr. One-Zero has added a new class to Stately Academy's curriculum. But in Advanced Chemistry, they only teach one lesson: how to make Green Pop! While their classmates are manufacturing this dangerous soda, the Coders uncover a clue that may lead them to Hopper's missing dad. Is it time to use Professor Bee's most powerful weapon: the Turtle of Light?

From graphic novel superstar (and former computer-programming teacher) Gene Luen Yang, comes Robots & Repeats, the fourth volume of Secret Coders. This wildly entertaining series combines logic puzzles and basic coding instruction with a page-turning mystery plot!

Buy book
$10.99
Bookshop
$9.34
Amazon
$10.99
Used $10.99
Prices as of Feb 28
Add to list
Girls Who Code
Written by Reshma Saujani
chapter book
Recommend Ages: 10-14

Part how-to, part girl-empowerment, and all fun, from the leader of the movement championed by Sheryl Sandberg, Malala Yousafzai, and John Legend. Since 2012, the organization Girls Who Code has taught computing skills to and inspired over 40,000 girls across America. Now its founder, Reshma Saujani, wants to inspire you to be a girl who codes! Bursting with dynamic artwork, down-to-earth explanations of coding principles, and real-life stories of girls and women working at places like Pixar and NASA, this graphically animated book shows what a huge role computer science plays in our lives and how much fun it can be. No matter your interest—sports, the arts, baking, student government, social justice—coding can help you do what you love and make your dreams come true. Whether you’re a girl who’s never coded before, a girl who codes, or a parent raising one, this entertaining book, printed in bold two-color and featuring art on every page, will have you itching to create your own apps, games, and robots to make the world a better place.

Buy book
$17.99
Bookshop
$15.29
Amazon
$17.99
Used $1.33
Prices as of Feb 28
Add to list
City Spies
Written by James Ponti
chapter book
Recommend Ages: 8-12

In this thrilling new series that Stuart Gibbs called “a must-read,” Edgar Award winner James Ponti brings together five kids from all over the world and transforms them into real-life spies—perfect for fans of Spy School and Mrs. Smith’s Spy School for Girls.

Sara Martinez is a hacker. She recently broke into the New York City foster care system to expose her foster parents as cheats and lawbreakers. However, instead of being hailed as a hero, Sara finds herself facing years in a juvenile detention facility and banned from using computers for the same stretch of time. Enter Mother, a British spy who not only gets Sara released from jail but also offers her a chance to make a home for herself within a secret MI5 agency.

Operating out of a base in Scotland, the City Spies are five kids from various parts of the world. When they’re not attending the local boarding school, they’re honing their unique skills, such as sleight of hand, breaking and entering, observation, and explosives. All of these allow them to go places in the world of espionage where adults can’t.

Before she knows what she’s doing, Sarah is heading to Paris for an international youth summit, hacking into a rival school’s computer to prevent them from winning a million euros, dangling thirty feet off the side of a building, and trying to stop a villain…all while navigating the complex dynamics of her new team.

No one said saving the world was easy…

Buy book
$17.99
Bookshop
$15.29
Amazon
$13.99
Used $2.54
Prices as of Feb 28
Add to list
Team BFF
Written & illustrated by Stacia Deutsch
chapter book
Recommend Ages: 8-12

After signing up for a “hackathon” day of coding, Sophia and her coding club friends welcome a robotics expert into their group, but find their teamwork challenged by conflicting opinions.

Buy book
$12.99
Bookshop
$11.04
Amazon
$9.65
Used $1.59
Prices as of Feb 28
Add to list
Women Who Launched the Computer Age
Written by Laurie Calkhoven & illustrated by Alyssa Petersen
chapter book
Recommend Ages: 6-8

This book was chosen by the Children’s Book Council as a best STEM book of 2017!

Meet the women who programmed the first all-electronic computer and built the technological language kids today can’t live without in this fascinating, nonfiction Level 3 Ready-to-Read, part of a new series of biographies about people “you should meet!”

In 1946, six brilliant young women programmed the first all-electronic, programmable computer, the ENIAC, part of a secret World War II project. They learned to program without any programming languages or tools, and by the time they were finished, the ENIAC could run a complicated calculus equation in seconds. But when the ENIAC was presented to the press and public, the women were never introduced or given credit for their work. Learn all about what they did and how their invention still matters today in this story of six amazing young women everyone should meet!

A special section at the back of the book includes extras on subjects like history and math, plus interesting trivia facts about how computers have changed over time. With the You Should Meet series, learning about historical figures has never been so much fun!

Buy book
$4.99
Bookshop
$4.24
Amazon
$3.99
Used $0.25
Prices as of Feb 28
Add to list
Add to list
Add to list
Add to list
  • The Friendship Code - Loops, variables, input/output – Lucy can’t wait to get started with the new coding club at school. Finally, an after school activity that she’s really interested in. But Lucy’s excitement turns to disappointment when she’s put into a work group with girls she barely knows. All she wanted to do was make an app that she believes will help someone very special to her. Suddenly, Lucy begins to get cryptic coding messages and needs some help translating them. She soon discovers that coding – and friendship – takes time, dedication, and some laughs!

  • Gabi's If/Then Garden - Gabi’s garden needs some help. Where to begin? Gabi and her best friend Adi use if/then statements to decide what to plant, what to water, and what to pick! These scientific thinkers find ways every day to use computer coding concepts to make work and play more fun!

  • Paths & Portals - Gene Luen Yang is the National Ambassador for Young People's Literature and is a MacArthur Fellow, a recipient of what's popularly known as the MacArthur Genius Grant. There's something lurking beneath the surface of Stately Academy--literally. In a secret underground classroom Hopper, Eni, and Josh discover that the campus was once home to the Bee School, an institute where teachers, students, and robots worked together to unravel the mysteries of coding. Hopper and her friends are eager to follow in this tradition and become top-rate coders. But why are Principal Dean and the rugby team suddenly so interested in their extracurricular activities? From graphic novel superstar (and high school computer programming teacher) Gene Luen Yang comes the second volume of Secret Coders, Paths & Portals, a wildly entertaining new series that combines logic puzzles and basic programming instruction with a page-turning mystery plot! This title has Common Core connections.

  • Adi's Perfect Patterns and Loops - Best friends Adi and Gabi love to play with Adi’s toy train. Round and round it goes-choo choo! Watching it loop the track gives the girls an idea. These scientific thinkers use their computer coding knowledge to put the train to work!

Add to list
Gabi's Fabulous Functions
Written by Caroline Karanja & illustrated by Ben William Whitehouse
picture book
Recommend Ages: 5-8

Computer coding in the kitchen? Yes! Best friends Gabi and Adi are baking a special birthday treat-and making a recipe is a lot like creating a function in a computer code. These scientifically minded junior programmers are always on the lookout for ways to work coding concepts into their day with Code Play!

Buy book
$27.99
Bookshop
$23.79
Amazon
$16.59
Used $26.98
Prices as of Feb 28
Add to list
Robot Queen
Written by Marci Peschke & illustrated by Tuesday Mourning
chapter book
Recommend Ages: 7-8

Today is a special day at Kylie Jean’s school, where everyone works on computer projects and learning coding, and Kylie is fascinated by the robotics team called RoboGirls–so she resolves to build a robot of her own, so she can impress the older girls, and join the team in time for the competition.

Buy book
$22.65
Bookshop
$19.25
Amazon
$13.96
Used $13.95
Prices as of Feb 28
Add to list
Secret Coders
Written & illustrated by Mike Holmes and Gene Luen Yang
chapter book
Recommend Ages: 8-11

Gene Luen Yang is the National Ambassador for Young People's Literature and is a MacArthur Fellow, a recipient of what's popularly known as the MacArthur Genius Grant.

Welcome to Stately Academy, a school which is just crawling with mysteries to be solved! The founder of the school left many clues and puzzles to challenge his enterprising students. Using their wits and their growing prowess with coding, Hopper and her friend Eni are going to solve the mystery of Stately Academy no matter what it takes!

From graphic novel superstar (and high school computer programming teacher) Gene Luen Yang comes a wildly entertaining new series that combines logic puzzles and basic programming instruction with a page-turning mystery plot!

This title has Common Core connections.

Buy book
$10.99
Bookshop
$9.34
Amazon
$9.49
Used $0.98
Prices as of Feb 28
Add to list
Hello Ruby: Adventures in Coding
Written by Linda Liukas
chapter book
Recommend Ages: 4-8

Meet Ruby—a small girl with a huge imagination, and the determination to solve any puzzle. As Ruby stomps around her world making new friends, including the Wise Snow Leopard, the Friendly Foxes, and the Messy Robots, kids will be introduced to the fundamentals of computational thinking, like how to break big problems into small ones, create step-by-step plans, look for patterns and think outside the box through storytelling. Then, these basic concepts at the core of coding and programming will be reinforced through fun playful exercises and activities that encourage exploration and creativity.

In Ruby’s world anything is possible if you put your mind to it.

Buy book
$17.99
Bookshop
$15.29
Amazon
$11.99
Used $2.15
Prices as of Feb 28
Add to list
Ada Lace And The Suspicious Artist
Written by Emily Calandrelli & illustrated by Renee Kurilla
chapter book
Recommend Ages: 6-10

From Emily Calandrelli—Emmy-nominated host of Xploration Outer Space, correspondent on Bill Nye Saves the World, and graduate of MIT—comes the fifth novel in a fun illustrated chapter book series about an eight-year-old girl with a knack for science, math, and solving mysteries with technology.

Third grader and inventor extraordinaire Ada Lace is on spring break. But it’s just a little less relaxing than she’d imagined. Nina is beside herself with excitement about meeting her favorite artist and enlists Ada and Mr. Peebles’s coding-whiz nephew to help revamp her online portfolio.

When Nina finally meets Miroir, he snubs her, and her confidence is shaken—but not enough to miss the art show opening. While there, Ada spots a suspiciously familiar painting that may mean Miroir isn’t the original he claims to be.

Will the friends be able to reveal the artist’s true nature, before he fools someone else?

Buy book
$16.99
Bookshop
$14.44
Amazon
$16.99
Used $16.99
Prices as of Feb 28
Add to list
Add to list
Add to list
Add to list
  • Who Says Women Can't Be Computer Programmers? - A picture book biography of Ada Lovelace, the woman recognized today as history’s first computer programmer—she imagined them 100 years before they existed! In the early nineteenth century lived Ada Byron: a young girl with a wild and wonderful imagination. The daughter of internationally acclaimed poet Lord Byron, Ada was tutored in science and mathematics from a very early age. But Ada’s imagination was never meant to be tamed and, armed with the fundamentals of math and engineering, she came into her own as a woman of ideas—equal parts mathematician and philosopher. From her whimsical beginnings as a gifted child to her most sophisticated notes on Charles Babbage’s Analytical Engine, this book celebrates the woman recognized today as the first computer programmer. A Christy Ottaviano Book

  • Code Your Own Adventure - Bring a space, pirate, jungle, and knight adventure to life through drawing central characters, animating plot lines, and creating games. With easy-to-follow, illustrated step-by step instructions, this book introduces key coding concepts through simple and practical tasks—from drawing shapes and giving instructions in code, to building games and much more!

  • Baby Code! Art - It’s never too early to get little ones interested in computer coding with this unique series of board books! How do you explain coding in art to a baby? By showing how it’s all around them, and how they can take part in it, of course! By using items in a baby’s world, like a camera or a block made from a 3D printer, this charming board book full of bright, colorful illustrations is the perfect introduction to coding in art for babies and their caregivers–and is sure to leave them wanting to learn more!

  • Baby Code! Music - It’s never too early to get little ones interested in computer coding with this unique series of board books! How do you explain coding in music to a baby? By showing how it’s all around them, and how they can take part in it, of course! By using experiences common in a baby’s world, like hearing a melody from a mobile or tapping on an electronic xylophone, this charming board book full of bright, colorful illustrations is the perfect introduction to coding in music for babies and their caregivers–and is sure to leave them wanting to learn more!

Add to list
Baby Code!
Written by Sandra Horning & illustrated by Melissa Crowton
board book
Recommend Ages: 0-3

It’s never too early to get little ones interested in computer coding with this unique series of board books! How do you explain coding to a baby? By showing how it’s all around them, and how they can take part in it, of course! By using items common in a baby’s world, like a teddy bear and electric train, this charming board book full of bright, colorful illustrations is the perfect introduction to coding for babies and their caregivers–and is sure to leave them wanting to learn more!

Buy book
$7.99
Bookshop
$6.79
Amazon
$7.99
Used $7.99
Prices as of Feb 28

    Did you enjoy our children's book recommendations? Did you know you can help us improve this list? Check out our Community Handbook and learn how to add tags to books.