↑↓ to move ↵ to open Esc to close Browse all tools

Free Sites to Learn to Code

Free places to learn programming, from interactive lessons to university courses and full web developer curricula. For each one we opened the official page and noted what is free, the limits and the certificate.

11 sitesChecked How we check

  • Our pick overall freeCodeCamp A free path with certifications
  • Our pick for web developers The Odin Project Becoming a full stack web developer
  • Our pick for computer science CS50x Computer science from scratch
Sites to Learn to Code What’s freeLimitsCertificate Checked Website
freeCodeCampA free path with certifications Completely free, self-paced curriculum run by a 501(c)(3) charityNot statedFree developer certifications Source Visit
The Odin ProjectBecoming a full stack web developer Free open source curriculum: Foundations, Full Stack JavaScript, Full Stack Ruby on RailsNot statedNot stated Source Visit
CS50xComputer science from scratch Harvard course for free via OpenCourseWare: C, Python, SQL, HTML, CSS, JavaScriptSubmitting work for feedback needs an edX accountThrough edX or Harvard Extension Source Visit
Full Stack OpenModern JavaScript web apps Free University of Helsinki course: React, Node.js, GraphQL, TypeScriptNot statedFree certificate and ECTS credits Source Visit
MIT OpenCourseWareMIT course materials Free MIT course materials, no account needed, CC BY-NC-SA 4.0No credit or certificatesNone Source Visit
MDN Learn web developmentHTML, CSS and JavaScript the standard way Beginner to comfortable modules on HTML, CSS, JavaScript and accessibilitySome linked third-party courses are partly paidNot stated Source Visit
Python for EverybodyPython for complete beginners Free lectures, book and assignments by Charles R. Severance, CC BY 4.0Not statedNot stated Source Visit
ExercismPractice in dozens of languages Exercises and mentoring, 100% free, forever, from a UK not-for-profitNot statedNot stated Source Visit
Codecademy BasicShort interactive lessons Always free Basic plan: limited course access, mobile app, workspacesNo career paths, portfolio projects or code challengesNot on the free plan Source Visit
W3SchoolsQuick reference with live examples Free tutorials with or without an account, Try it Yourself editorAd-free Plus and course certificates are extrasNot stated Source Visit
ScratchKids taking their first steps Free for everyone, run by an independent nonprofitNot statedNot stated Source Visit

We are not paid for any listing and there are no affiliate links on this page. "Not stated" means the source page does not say it.

Where to start

Pick a starting point by what you want to build, not by which language is popular:

Your goalStart with
Never written code beforefreeCodeCamp, the MDN Getting started modules, W3Schools
Websites and web appsThe Odin Project, Full Stack Open, MDN Learn web development
Computer science basicsCS50x, MIT OpenCourseWare
Python for data and automationPython for Everybody, freeCodeCamp's Python certification
Practice a language you startedExercism
ChildrenScratch

MDN says its Getting started modules are where complete beginners should begin, before they have even installed a code editor. Our list of free code editors helps you pick one when you get there.

Free certificates and credits

Learning is free on every site here, but a certificate is not always included:

PlatformCertificate
freeCodeCampFree developer certifications, from Responsive Web Design to Python and Back-End Development
Full Stack OpenCertificate and University of Helsinki ECTS credits at no cost
CS50xCertificate options through edX and Harvard's Extension and Summer Schools
Codecademy BasicNo certificates on the free plan
MIT OpenCourseWareNo credit or certificates

Whatever you choose, keep the projects you build along the way in one place, so you can show your code later.

Practice with real developer tools

Courses teach the syntax; everyday work also means reading data and fixing small mistakes. These free tools run in your browser:

  • Regex tester: try a regular expression against your own text and see every match.
  • JSON formatter: make API responses readable and find syntax errors.
  • HTML formatter: indent messy markup so the structure is easy to follow.
  • SQL formatter: lay out queries from a course exercise or your own database.

Our guide JSON vs YAML vs CSV explains the data formats you will meet in almost every course.

How we checked

We opened each platform's own about page, course page, pricing page or repository on the date in the table and wrote down only what it says. If a page does not mention a certificate, the column says "Not stated". For courses on other subjects, see our list of free online courses.

Frequently asked questions

Can I really learn to code for free?

Yes. freeCodeCamp says its curriculum is completely free and self-paced, The Odin Project offers a free full stack curriculum, and Exercism says it is 100% free, forever. Harvard's CS50x can be taken for free through OpenCourseWare.

Which free coding course gives a certificate?

freeCodeCamp offers several free developer certifications, and Full Stack Open from the University of Helsinki gives a certificate and ECTS credits at no cost. Codecademy's free Basic plan does not include certificates, and MIT OpenCourseWare offers none.

Is CS50 free?

Yes. Harvard says you are welcome to take CS50x for free via OpenCourseWare. It starts with C, then moves to Python, SQL, HTML, CSS and JavaScript. To submit problem sets and the final project for feedback you need an edX account.

Where can kids learn to code for free?

Scratch says it is free for everyone and calls itself the world's largest creative learning community for kids. It is run by an independent nonprofit.

What does Codecademy include for free?

Codecademy's always free Basic plan gives limited access to courses and the AI Learning Assistant, plus the mobile app and workspaces. Career paths, certificates of completion and portfolio projects are not available on Basic.