A free, comprehensive, scaffolded computer science curriculum available in 30+ languages for teachers and their students of all grade levels to learn computational thinking and artificial intelligence skills for the 21st century
Welcome to our Global website. Looking for our USA website?
Code.org is a USA nonprofit organization dedicated to expanding access to computer science education by providing free coding courses, curriculum, and resources for students of all ages, as well as professional development and teaching tools for educators. Our teaching materials and student lessons cover a wide variety of computer science, computational thinking, and artificial intelligence education for children ages 5-18 and entirely FREE and available in over 30 languages and used by millions of students each year.
When you utilize Code.org's curriculum, you have everything there for you. It has the questions that you need to ask your students. It has the lessons that you need to teach and it gives you guidance on how to do it. So if you come in without any experience in computer science, it's there for you. If you have experience with computer science and teaching it before, it's going to give you a new way of approaching how to teach your students.
Artificial Intelligence is not magic... it's just Code! Our courses demystify AI and help students understand the many ways this important new technology will change the ways we live, work, and learn. Students learn foundational concepts that will spark their interest in technology and help them understand the world around them in a deeper way.
Foundations of Generative AI
Introduces the basics of generative AI and how it works, covering neural networks, embeddings, and how large language models are trained to understand and represent language.
Customizing Language Models
Focuses on practical skills for tailoring AI models using techniques like prompt engineering and retrieval, while promoting transparency through model cards.
Introduce young students to AI and machine learning with hands-on activities using predictive data models. Students will practice making their own predictions and learn about data categorization and sorting.
Help A.I. clean the oceans by training it to detect trash! Learn about training data and bias, and how AI can address world problems.
Learn about artificial intelligence (AI) concepts to create your own virtual dance party showcasing today's top artists. With dozens of songs to choose from, reach every student no matter their music taste. It's time to strut your stuff!
Ready to mix music and code? In Music Lab: Jam Session, you’ll remix songs from artists like Sabrina Carpenter, Lady Gaga, and Shakira while learning cool coding skills like sequencing and creating beats with AI. It’s a fun way to get creative with coding!
Understand what makes a computer a computer, how digital information is represented in 1s and 0s, how computer circuits work to manipulate digital information, and how a central processing unit (CPU) and operating system control the inputs, outputs, memory, and hardware of a computer. View the full playlist and associated lesson plans.
Foundational online learning series for any teacher or educator interested in the groundbreaking world of artificial intelligence (AI) and its transformative potential in education. View the full playlist
Computer Science Fundamentals (CSF) is a free set of elementary computer science curricula with six grade-specific courses, each 13–20 lessons long, designed for beginners and aligned to CSTA Standards. The courses introduce foundational concepts, promote equitable learning, and explore the impact of computing and technology.
Program using commands like loops and events. Teach students to collaborate with others, investigate different problem-solving techniques, persist in the face of challenging tasks, and learn about internet safety.
Through unplugged activities and a variety of puzzles, students will learn the basics of programming, collaboration techniques, investigation and critical thinking skills, persistence in the face of difficulty, and internet safety.
Create programs with sequencing, loops, and events. Investigate problem-solving techniques and develop strategies for building positive communities both online and offline. Create interactive games that students can share.
Review of the concepts found in earlier courses, including loops and events. Afterward, students will develop their understanding of algorithms, nested loops, while loops, conditionals, and more.
Make fun, interactive projects that reinforce learning about online safety. Engage in more complex coding such as nested loops, functions, and conditionals.
Look at how users make choices in the apps they use. Make a variety of Sprite Lab apps that also offer choices for the user. Learn more advanced concepts, including variables and “for” loops.
Teachers play a critical role in student learning by teaching our unplugged activities and leading whole class discussions, however, we recognize that CS Fundamentals isn't always taught in a traditional classroom setting. We provide two self-paced express courses alongside Courses A-F. These express courses are designed for situations where teachers allow each student to work at their own pace independently.
Learn the basics of drag-and-drop block coding by solving puzzles and creating animated scenes. Make art and simple games to share with friends, family, and teachers.
Learn to create computer programs, develop problem-solving skills, and work through fun challenges! Make games and creative projects to share with friends, family, and teachers.
Computer Science Discoveries (CSD) is a free flexible curriculum that introduces Computational Thinking and Artificial Intelligence literacy for grades 6-12. CSD introduces students to building their own websites, apps, animations, games, and physical computing systems and to understanding the basics of artificial intelligence. Curricula empowers students to create authentic artifacts and engage with computer science as a medium for creativity, communication, problem-solving, and fun. No prior experience needed!
Problem Solving and ComputingUse a problem-solving process to tackle puzzles, challenges, and real- world scenarios. Learn about computer input, output, storage, and processing to aid in problem-solving.
Web Development
Create and share content on web pages, exploring the creative potential of the web. Develop critical consumption skills, problem-solving abilities, and teamwork while programming.
Interactive Animations and Games
Create programmatic images, animations, interactive art, and games. Gain familiarity with programming concepts and the design process.
The Design Process
Focus on considering the societal impact of computing. Through design challenges, students empathize with others' needs and develop solutions.
Data and Society
Emphasizes the role of data in problem-solving and the assistance of computers in this process. Cover representation systems and associated challenges. Discover how data collections aid problem-solving.
Creating Apps with Devices
Explore the role of physical devices in computing. Develop programs that utilize hardware inputs and outputs. There is a version of this unit for both the micro:bit and Circuit Playground.
Artificial Intelligence and Machine Learning
Explore how computers learn from data. Develop machine learning projects around real-world data. Design a machine learning app to solve a personally relevant problem.
This flexible curriculum covers Computational Thinking and Artificial Intelligence literacy and introduces students to building their own websites, apps, animations, games, and physical computing systems and to understanding the basics of artificial intelligence. Curricula empowers students to create authentic artifacts and engage with computer science as a medium for creativity, communication, problem-solving, and fun. No prior experience needed! Each unit of CS Discoveries can be used on its own with no prior experience required, which allows you to pick the exact units that work for your classroom.
Generative AI
This unit aims to build a foundational understanding of text-based generative AI models, focusing on core concepts over technical skills. Students will demystify generative AI models by exploring their internal structures through the familiar lens of input, storage, process, and output. They will gain insights into how these models represent language, the impact of training data on model performance, and the potential for bias.
Introduction to Programming
This unit provides a comprehensive introduction to foundational programming skills through project-based learning. It emphasizes practical applications of Python, focusing on variables, control structures, loops, functions, and algorithms.
Computer Systems and Devices
This unit students explore how computing systems operate, focusing on the interaction between hardware, software, and operating systems.
Networks and the Internet
This unit introduces students to the foundational concepts of networking, focusing on how data is transmitted across interconnected systems that form the Internet. This unit covers key topics, including Internet protocols (IP, TCP, HTTP, DNS), data communication, and the societal impacts of network infrastructure.
Cybersecurity and Global Impacts
This unit introduces students to the fundamentals of cybersecurity, focusing on both technical concepts and societal impacts. Students explore topics such as data privacy, security risks, encryption techniques, and the role of human error in breaches.
Introduction to Data Science
This unit introduces students to the foundational stages of the data science process, including data collection, organization, and interpretation. Students learn to apply statistical techniques, explore data trends, and engage in meaningful discussions about data ethics and privacy.
This series of short videos will help you understand how the Internet works, explain HTTP and HTML, and shed light on SSL and cybersecurity. Featuring Vint Cerf, the inventor of TCP/IP, David Karp the founder of Tumblr, Google's Security Princess, and engineers from Microsoft, Spotify, and Symantec. View the full playlist
The Internet is open, so everything that happens on it can be seen unless it's protected. In modern countries, people are more worried about getting hacked than about any other crime. Why? Because every computer or phone on the Internet is regularly being tested for vulnerabilities by criminals, terrorists, or even state actors. If you're not careful, somebody could hack your device or accounts, and even steal your identity or your money. View the full playlist.
Made in partnership with Coinbase, this series features industry experts and aims to demystify this technology by exploring what blockchain is, how it works, and its potential societal implications — both good and bad. View the full playlist and associated lesson plans.
The Hour of Code is a global event that introduces students to computer science through one-hour coding activities. The event is intended to inspire students to pursue computer science in the future. Explore Hour of Code Activities available in many languages.
In this engaging lesson, students use Music Lab to develop coding skills, compose songs, and connect technology with creativity.
Code your own dance party to share with your friends! With dozens of songs to choose from, reach every student no matter their music taste. It's time to strut your stuff!
Build and explore with Minecraft! Use your creativity and problem solving skills to explore and build new worlds with code.
In the 21st century, computer science (CS) and programmatic thinking have emerged as indispensable tools for navigating an increasingly digital world. While many associate CS education with high-paying careers in software engineering or technology, its benefits extend far beyond the tech sector. Incorporating CS and STEM education into K-12 curricula empowers students in every career path, from agriculture and hospitality to manufacturing and beyond, by fostering critical skills that improve problem-solving, adaptability, and creativity—skills essential for success in any field or life ambition.
First and foremost, computer science education equips children with computational thinking, a problem-solving framework that encourages breaking down complex problems into manageable parts, recognizing patterns, and creating logical solutions. This way of thinking is not confined to writing code; it is equally relevant in blue-collar industries. For example, a farmer can use computational thinking to analyze crop yields and weather patterns, optimizing resources and improving harvests. A hospitality professional might apply these skills to streamline operations or analyze customer feedback, enhancing guest experiences. By learning to think programmatically, students gain tools to tackle real-world challenges systematically and effectively, regardless of their career paths.
Moreover, CS education nurtures resilience and adaptability. Programming often involves trial and error, teaching students the value of persistence and the importance of learning from mistakes. In manufacturing, these lessons translate into the ability to troubleshoot equipment or innovate more efficient processes. In life, this mindset builds confidence and a proactive attitude toward problem-solving, qualities that benefit individuals in any pursuit.
Creativity is another hallmark of CS education. Writing code is a form of creation, requiring students to imagine possibilities and bring ideas to life. This creativity transcends industries, fostering innovation whether designing a new product, crafting a memorable dining experience, or developing sustainable practices in agriculture. CS education also encourages collaboration, as students work together to design, test, and refine projects—a vital skill in any workplace.
Importantly, early exposure to CS in K-12 education demystifies technology, empowering children from diverse backgrounds to see themselves as active participants in a digital world. This inclusivity ensures that all students—not just those pursuing traditional STEM careers—are prepared to navigate and shape a future defined by technology. It also helps bridge the digital divide, providing equitable opportunities for all children to succeed.
In conclusion, CS and programmatic thinking in K-12 education are not just pathways to high-paying tech jobs; they are foundational skills that enhance the lives and performance of all children, regardless of their career ambitions. By fostering critical thinking, creativity, and adaptability, CS education prepares students to thrive in a rapidly evolving world and contribute meaningfully to their communities. Integrating this education across the curriculum is not just an investment in the future of technology—it is an investment in the future of every child.