What is the difference between open source, free software, freeware and public domain?

Open source explained in plain language.

Open source and free software are about rights: using, studying, sharing and adapting. Freeware usually just means that something is free to use.

Public domain means that there is no longer any copyright restriction, or that the rights holder has waived it to the extent legally possible. That is different from open source.