Chris Castiglione Co-founder of One Month. Faculty at Columbia University where I teach Digital Literacy. I write about coding, the internet, and social impact.

42 of the Best Places to Learn to Code for Free Online

5 min read

If you want to learn how to code, there are plenty of places to start that won’t cost you anything.

In fact, we’d actually recommend trying a free option first. If you want to get deeper into a programming language later on, that’s great! But to really figure out if you enjoy a certain language, using a free resource is a great starting point.

But where to begin? We’ve made an expansive list of 40 places to where you can start learning to code for free. Because we’re helpful like that.

I. Learn to Code for Beginners

Learn Computer Programming with One Month

Programming for Non-Programmers

Curious about coding? Want to learn to speak geek? Don’t be overwhelmed — this beginner course is the perfect introduction to web development and programming.

Learn Coding with DataCamp


Featuring free access to Python, SQL, Git, and much more. More than 100 courses, practice challenges, data projects, and more.

Learn to Code with Khan Academy

Khan Academy

Khan Academy has free courses for just about everything. But the site’s computer programming section offers SQL, HTML, and JavaScript. If you can’t decide what language to start with, try a basics/intro course.

Learn to Code with GA Dash

GA Dash

Another site that specializes in HTML, CSS, and JavaScript. General Assembly aims to teach, but also to offer “career transformation.”

Learn to Code with Quick Code


QuickCode offers free trials for courses in a number of various programming languages. Unique courses include making a platformer and building a virtual assistant.

Learn to Code with Coursera


Coursera lets users take courses from top universities for free. Unlike most of these sites, you have to enroll for an upcoming class. It’s a bit different, but may provide a great experience.

Learn to Code with MIT Open Course Ware


Unlike Coursera, MITOpenCourseWare offers old courses, and from one university: MIT. Within programming languages, there are numerous options. It can be tough to navigate, but not if you start at the link we’ve included.

Learn to Code with The Odin Project

The Odin Project

HTML, JavaScript, GIT, Ruby and more, all on a clean, well-designed website. The site is supported by an open source community, so you can expect plenty of updates and support.

Learn to Code with Learn Code the Hard Way

Learn Code The Hard Way

Python, Ruby, JavaScript, SQL and more. Don’t be thrown off: this site will ask you to buy a book, but you can learn using the website for free.

Learn to Code at free code camp

Free Code Camp

HTML, Git, JavaScript, databases, CSS and more. No confusion here — check the name. You can even do coding for non-profits to get some experience.

Learn to Code with Code Avengers

Code Avengers

Code Avengers offers Python, HTML, JavaScript and more. Code Avengers is a site which specializes to kids as well as adult learners, which makes it unique on this long list.

Learn to Code with

Bento features more than 100 different web development topics including HTML, Git, JavaScript, Python and more. The site also offers “learning tracks,” which are free full stack web dev curriculums.

II. Learn HTML & CSS

Learn HTML with HTML Dog


HTML Dog has been around since 2003. It offers tutorials in both HTML and CSS (as well as JavaScript). The site offers tutorials, techniques, examples, and references, and does so in a straightforward fashion.

Learn HTML & CSS with Learn to Code with HTML & CSS

Learn HTML & CSS

Shay Howe’s page is a training guide for both HTML and CSS. Howe breaks coding down into 12 simple lessons, and offers advanced lessons if you’d like to go further.

Learn HTML & CSS with MarkSheet

MarkSheet is a solid free option for HTML and CSS, and it breaks down lessons for absolute beginners, designers, and developers. MarkSheet’s Jeremy Thomas is also offering a new eBook, “Learn CSS in 44 minutes.”

learn to code with mozilla developers

Mozilla Developer Network

Mozilla’s network has a number of different options for those looking to learn coding, and HTML and CSS are on the list. The network also offers a frequently updated blog, and an open community which allows users to make suggested changes.


III. Learn JavaScript

Learn JavaScript with One Month

Learn JavaScript with One Month

Build four real-world projects with One Month JavaScript. While the course costs, the free trial allows 7 day free access to the course in which you can launch your first JavaScript project!

Learn JavScript with

Easy to remember and easy to get into, it’s a good starting point for true newbies. Front and center, the site offers a series of challenges as soon as you load up the homepage.

Learn JavaScript with Learn JS

Learn JS

Learn JS is a straightforward site with tutorials. The site features code and output windows that can give you an immediate idea of what your code is doing. You can also contribute tutorials yourself.

Learn JavaScript from Watch and Code

Watch and Code

Watch and Code only concentrates on JavaScript, and it focuses on what’s used most in web programming. The site offers weekly instructor-led video chats, as well — a unique feature that may be extremely helpful for certain learners.

Learn JavaScript with JavaScript for cats

JavaScript For Cats

You don’t have to like cats to use this site, which teaches the basics. But it won’t hurt to be feline-inclined. This site is probably one of the quickest reads on the whole list, which makes it ideal for novices.

III. Learn Python

Learn Python with

From the same people who brought you Learn JS, Learn Python is a clean site with plenty of tutorials. Again, users can contribute their own tutorials, as well.

Learn Python with Python Spot


Learn Python at One Month

Learn Python

The course offer the basics of Python with a focus on business use cases. In this course you’ll learn BeautifulSoup for web scraping, Pandas for data analysis, run a Flask server, and much more! While there is an enrollment cost, the free trial allows 7 day free access to the course!


PythonSpot has a similar look to LearnPython. It offers complete tutorials for Python 2 and Python 3. There’s a long list right on the homepage, but don’t be alarmed — it’s all compartmentalized to make things easier to digest.

VI. Learn Ruby

Learn Ruby with


If you’re curious in learning Ruby, why not check out the official Ruby site? It offers a way to try Ruby from within your browsers, and also includes a tutorial called Ruby in Twenty Minutes.

Learn Rails with the Ruby on Rails tutorial

Ruby on Rails Tutorial

Michael Hartl’s tutorial is basically an online book, but some people may learn better this way. Even though it’s an eBook, the tutorial still offers plenty of screenshots and images.

V. Learn SQL

Learn SQL with MySQL Tutorial


A tutorial page for learning SQL that features screenshots. It offers a number of steps to get into SQL, and a helpful tool called MySQL TryIt.

Learn SQL with Vertabelo Academy

Vertabelo Academy

Features basic interactive courses for a number of SQL topics including functions and queries. A helpful Course Advisor lets users know where to begin.

VI. Learn The Command Line

Learn Command Line at One Month

One Month’s Learn the Command Line

A free command Line basics video course that can be completed in under one hour.

Learn Command Line with Learn Enough

Learn Enough

Another free Michael Hartl offering, this one is focused on Command Line. The full title? Learn Enough Command Line To Be Dangerous. It’s designed to appeal to a broad audience, so everyone is welcome to start here.

VII. Git and Github

Learn Git and Github with Git Immersion

Git Immersion

As its name implies, users are immediately immersed in Git in order to learn the basics. A no-nonsense site with a slightly different approach.

Learn Git and Github with Try Git

Try Git

A list of resources for learning Git. It includes the GitHub Learning Lab, which offers a series of projects. The site’s Git-It tool can be downloaded to your computer for a hands-on tutorial.

VIII. Learn WordPress

Learn WordPress with WPBeginner


The title sort of says it all, doesn’t it? A free site of resources for WordPress newbies. The blog also answers a lot of questions beginners may have.

Learn WordPress with

If you’re better when learning from video, features a number of helpful vids. The site includes new updated videos in a blog.

IX. Learn iOS & Mobile App Development

Learn Mobile App Development with Swift Playground

Swift Playgrounds

A free iOS app from Apple that teaches users how to learn its own programming language. If you’re already used to using iPad apps, this may feel as much like a game as learning a new language.

Learn Mobile App Development with Google Developers Training

Google Developers Training

What Swift Playgrounds is to iOS, this is for prospective Android developers. There’s a bootcamp for beginners, but a number of intermediate and advanced courses, as well.

Learn Mobile App Development with Android Developers

Android Developers

Another popular resource focused on learning to develop for Android. It can feel a bit much, but a Get started section offers the chance to get right into building your first app.

X. Learn Machine Learning/AI

Learn Machine Learning/AI With Google AI

Google AI

Free machine learning/AI courses from the folks at Google. It’s a Google-backed site, so as you might expect, it’s clean and easy to navigate. Features machine learning guides and a crash course, too.

Learn Machine Learning/AI with Machine Learning Mastery

Machine Learning Mastery

Machine Learning Mastery comes as a free eBook, but the site features tutorials and guides, as well. This site stresses that it aims for helping developers through straightforward language, promoting its relative lack of math compared to other machine learning sites.


Chris Castiglione Co-founder of One Month. Faculty at Columbia University where I teach Digital Literacy. I write about coding, the internet, and social impact.

One Reply to “42 of the Best Places to Learn to Code…”

  1. Excellent Post
    For learning online coding on free of cost. I totally agree with this article.
    It is really helpful to self learner web developers.
    Thank you for sharing your great knowledge with us.
    Looking forward to your further tips on similar topics Thanks…
    I really appreciate it.

Leave a Reply

Your email address will not be published. Required fields are marked *