Beginner10 min readBadge: Licence Aware

Open source and licences: can I use this?

What open source means, how licences like MIT and GPL differ, what to check before you copy code, images or fonts, and how to license your own project.

Public isn't the same as free to use

Code on GitHub, images in search results and fonts on websites are all owned by someone. What you're allowed to do with them is set by their licence. Open source means the owner has published the code under a licence that lets others use, change and share it, usually with a few conditions. No licence at all usually means you can look but not reuse.

The licences you'll meet most

  • MIT and Apache 2.0 (permissive): use it in almost anything, including paid products; keep the copyright and licence notice.
  • GPL (copyleft): if you distribute software that includes GPL code, you generally must share your source under the GPL too. Check carefully before using it in a closed product.
  • Creative Commons: common for images, writing and music. CC BY means credit the creator; NC means no commercial use; ND means no changes.
  • Fonts and icons have their own licences; many free fonts (such as those on Google Fonts) use the SIL Open Font License.

Before you copy

Look for a LICENSE file in the repository, or the licence on the image or font page. Keep the required notices. When an AI tool or builder adds packages, they come with licences too; most popular ones are permissive, but check anything unusual. AI-generated code can sometimes resemble existing code, so don't paste in large chunks you can't explain, and follow your company's or school's rules. For anything high-stakes, ask someone who knows the law.

License your own work

If you share code publicly and want others to use it, add a LICENSE file (GitHub can add one when you create a repository). MIT is the simplest permissive choice; pick a copyleft licence like GPL if you want improvements to stay open. Keep secrets out of public repositories, whatever the licence.

Key terms

Open source
Software whose code is public for anyone to read, use and improve under its licence.
Licence (software license)
The rules for what others may do with code, images or fonts: use, change, share or sell.
Repository (repo)
A project folder plus its full change history.
README
The front page of a repository: what it is and how to run it.
Copyright
Legal rights over creative work. Rules for AI-made work differ by country and are still changing.
npm / package
npm is the registry of reusable JavaScript code; each reusable piece is a package.
See the full glossary

Try it

Licence detective

  1. Open a popular GitHub repository and find its LICENSE file. Which licence is it?
  2. Open your own project's package.json and pick two packages. Look up their licences.
  3. Find a free image you'd like to use and check its licence terms.
  4. Add a LICENSE file to one of your own public repositories.

Ask an AI tutor about this guide

Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.

Study with an AI tutor: copy this whole guide with tutoring instructions, then paste it into your AI assistant.
  • Explain it like I'm 12
  • Quiz me (5 questions, one at a time)
  • Show me a real example for my situation
  • What do beginners get wrong?

Knowledge check

Five questions. Get 4 right to earn the Licence Aware badge. You can retake it as often as you like.

Question 1 of 5

You find code on GitHub with no licence file. What can you assume?

Finished the How software works guides? Take the How software works track test for ten mixed questions.

My notes

Write what clicked, what confused you, and what you want to try. Saved in this browser only.

Learn it live

Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.

See workshops

Practise it

Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.