Skip to content

Instantly share code, notes, and snippets.

@lukas-h
Last active November 11, 2024 03:22
Show Gist options
  • Save lukas-h/2a5d00690736b4c3a7ba to your computer and use it in GitHub Desktop.
Save lukas-h/2a5d00690736b4c3a7ba to your computer and use it in GitHub Desktop.
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

Further informations:

  • Badges are made with Shields.io.
  • Github has a new autodetection for LICENSE files, which shows the license at the repo overview
  • Shields.io has autogenerated license badges: https://img.shields.io/github/license/<Github-Username>/<Repository>
  • Really nice: https://choosealicense.com/ (if you are unsure, which license to choose)

Want to add a License?

Comment this gist or write me an E-Mail ([email protected])

Apache

Apache 2.0 License

License
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Boost

Boost Software License 1.0

License
[![License](https://img.shields.io/badge/License-Boost_1.0-lightblue.svg)](https://www.boost.org/LICENSE_1_0.txt)

BSD

BSD 3-Clause License

License
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

BSD 2-Clause License

License
[![License](https://img.shields.io/badge/License-BSD_2--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)

Creative Commons

Choose on CreativeCommons.org

CC0

License: CC0-1.0
[![License: CC0-1.0](https://licensebuttons.net/l/zero/1.0/80x15.png)](http://creativecommons.org/publicdomain/zero/1.0/)

License: CC0-1.0

[![License: CC0-1.0](https://img.shields.io/badge/License-CC0_1.0-lightgrey.svg)](http://creativecommons.org/publicdomain/zero/1.0/)

Attribution 4.0 International

License: CC BY 4.0
[![License: CC BY 4.0](https://licensebuttons.net/l/by/4.0/80x15.png)](https://creativecommons.org/licenses/by/4.0/)

License: CC BY 4.0
[![License: CC BY 4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

Attribution-ShareAlike 4.0 International

License: CC BY-SA 4.0
[![License: CC BY-SA 4.0](https://licensebuttons.net/l/by-sa/4.0/80x15.png)](https://creativecommons.org/licenses/by-sa/4.0/)

License: CC BY-SA 4.0
[![License: CC BY-SA 4.0](https://img.shields.io/badge/License-CC_BY--SA_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-sa/4.0/)

Attribution-NonCommercial 4.0 International

License: CC BY-NC 4.0
[![License: CC BY-NC 4.0](https://licensebuttons.net/l/by-nc/4.0/80x15.png)](https://creativecommons.org/licenses/by-nc/4.0/)

License: CC BY-NC 4.0
[![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC_BY--NC_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc/4.0/)

Attribution-NoDerivates 4.0 International

License: CC BY-ND 4.0
[![License: CC BY-ND 4.0](https://licensebuttons.net/l/by-nd/4.0/80x15.png)](https://creativecommons.org/licenses/by-nd/4.0/)

License: CC BY-ND 4.0
[![License: CC BY-ND 4.0](https://img.shields.io/badge/License-CC_BY--ND_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nd/4.0/)

Attribution-NonCommmercial-ShareAlike 4.0 International

License: CC BY-NC-SA 4.0
[![License: CC BY-NC-SA 4.0](https://licensebuttons.net/l/by-nc-sa/4.0/80x15.png)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

License: CC BY-NC-SA 4.0
[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC_BY--NC--SA_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

Attribution-NonCommercial-NoDerivatives 4.0 International

License: CC BY-NC-ND 4.0
[![License: CC BY-NC-ND 4.0](https://licensebuttons.net/l/by-nc-nd/4.0/80x15.png)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

License: CC BY-NC-ND 4.0
[![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC_BY--NC--ND_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

Eclipse

Eclipse Public License 1.0

License
[![License](https://img.shields.io/badge/License-EPL_1.0-red.svg)](https://opensource.org/licenses/EPL-1.0)

GNU

GNU GPL v3

License: GPL v3
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

GNU GPL v2

License: GPL v2
[![License: GPL v2](https://img.shields.io/badge/License-GPL_v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)

GNU AGPL v3

License: AGPL v3
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)

GNU LGPL v3

License: LGPL v3
[![License: LGPL v3](https://img.shields.io/badge/License-LGPL_v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)

GNU FDL v1.3

License: FDL 1.3
[![License: FDL 1.3](https://img.shields.io/badge/License-FDL_v1.3-blue.svg)](https://www.gnu.org/licenses/fdl-1.3)

The Organization for Ethical Source

The Hippocratic License 2.1

License: Hippocratic 2.1 [![License: Hippocratic 2.1](https://img.shields.io/badge/License-Hippocratic_2.1-lightgrey.svg)](https://firstdonoharm.dev)

The Hippocratic License 3.0

License: Hippocratic 3.0 [![License: Hippocratic 3.0](https://img.shields.io/badge/License-Hippocratic_3.0-lightgrey.svg)](https://firstdonoharm.dev)

IBM

IBM Public License Version 1.0

License: IPL 1.0
[![License: IPL 1.0](https://img.shields.io/badge/License-IPL_1.0-blue.svg)](https://opensource.org/licenses/IPL-1.0)

ISC

ISC License (ISC)

License: ICL
[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC)

MIT

The MIT License

License: MIT
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Mozilla

Mozilla Public License 2.0

License: MPL 2.0
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)

Open Data Commons

Attribution License (BY)

License: Open Data Commons Attribution
[![License: Open Data Commons Attribution](https://img.shields.io/badge/License-ODC_BY-brightgreen.svg)](https://opendatacommons.org/licenses/by/)

Open Database License (ODbL)

License: ODbL
[![License: ODbL](https://img.shields.io/badge/License-ODbL-brightgreen.svg)](https://opendatacommons.org/licenses/odbl/)

Public Domain Dedication and License (PDDL)

License: ODbL
[![License: ODbL](https://img.shields.io/badge/License-PDDL-brightgreen.svg)](https://opendatacommons.org/licenses/pddl/)

Perl

The Perl License

License: Artistic-2.0
[![License: Artistic-2.0](https://img.shields.io/badge/License-Perl-0298c3.svg)](https://opensource.org/licenses/Artistic-2.0)

The Artistic License 2.0

License: Artistic-2.0
[![License: Artistic-2.0](https://img.shields.io/badge/License-Artistic_2.0-0298c3.svg)](https://opensource.org/licenses/Artistic-2.0)

SIL

SIL Open Font License 1.1

License: Open Font-1.1
[![License: Open Font-1.1](https://img.shields.io/badge/License-OFL_1.1-lightgreen.svg)](https://opensource.org/licenses/OFL-1.1)

Unlicense

The Unlicense

License: Unlicense
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)

WTFPL

The Do What the Fuck You Want to Public License

License: WTFPL
[![License: WTFPL](https://img.shields.io/badge/License-WTFPL-brightgreen.svg)](http://www.wtfpl.net/about/)

Zlib

The zlib/libpng License

License: Zlib
[![License: Zlib](https://img.shields.io/badge/License-Zlib-lightgrey.svg)](https://opensource.org/licenses/Zlib)

@hritik5102
Copy link

hritik5102 commented May 10, 2021

Wow, that's amazing, thanks for this :)

@codemacabre
Copy link

codemacabre commented Jul 20, 2021

Great list, thanks @lukas-h! Please could you add License: Hippocratic 2.1 ?

@AyatoKirishima
Copy link

Tysm !

@laurelthorburn
Copy link

Please create a copy button for easier use. Thanks :)

@lukas-h
Copy link
Author

lukas-h commented Oct 22, 2021

I added Hippocratic as suggested by @codemacabre and replaced %20 by _, proposed by @taiki-e. Thanks for the tips! 😄

@lukas-h
Copy link
Author

lukas-h commented Oct 22, 2021

@laurelthorburn Sorry, I think can unfortunately not control this. Maybe Github implements a copy button for Gists at some point, which they already did for markdown files on github.com.

@MagedMohamedTurk
Copy link

Thanks for sharing

@Tyler887
Copy link

Add FSF All-permissive license https://spdx.org/licenses/FSFAP.html

@developer0hye
Copy link

Awesome! Thanks!

@Mennaruuk
Copy link

Thanks for this!

@LiuToki
Copy link

LiuToki commented May 5, 2022

Great work!
I found this, forked, and translated into Japanese(https://gist.github.com/LiuToki/c383dd2ffcf3d03b43bbf26bdf39332b).
Please Add following markdown text into this gist's translations list.
[:jp: 日本語版リスト](https://gist.github.com/LiuToki/c383dd2ffcf3d03b43bbf26bdf39332b)

@lukas-h
Copy link
Author

lukas-h commented May 6, 2022

@LiuToki great :) Linked it!

@cluzier
Copy link

cluzier commented Aug 6, 2022

Thank for for sharing these!

@maciejskorski
Copy link

Thanks!

@lukas-h
Copy link
Author

lukas-h commented Aug 8, 2022

Glad I could help :)

@maciejskorski
Copy link

Glad I could help :)

👍 how about adding examples on Python version badges - I think people would love it ?

@lukas-h
Copy link
Author

lukas-h commented Aug 8, 2022

Hi @maciejskorski,

you can create your own custom badges here: shields.io

I just made a list with a few shortcuts for OSS licenses, so you don't have to write them yourselves with shields.io

@insign
Copy link

insign commented Oct 7, 2022

Where is BSD-4-clause?

@nevstop
Copy link

nevstop commented Nov 24, 2022

Greate work! Thank you.

@gmontard
Copy link

Hey,

Would you mind adding the ELv2 (Elastic v2) License?

Thank you

@sasankaweera123
Copy link

This is very helpful. 😘

Great work! Thank you.

@mukadas026
Copy link

This is amazing and really helpful, thank you @lukas-h

@Cleffy
Copy link

Cleffy commented Jul 10, 2023

This is great thanks.

@athachai29
Copy link

Thanks, mate.

@hybee234
Copy link

hybee234 commented Oct 24, 2023

Thank you so much for putting this together, it is very helpful.

I've noticed what looks like a bug/typo - the Apache 2.0 is "blue" in the URL provided whereas the example badge uses a colour of "yellowgreen". Presumably these need to align (and my guess is that it is intended to be yellowgreen).

I'm not aware of how to paste links without rendering the badges:

URL provided:

License

This has "License-Apache_2.0-blue.svg" in it

Badge example

License

This has "License-Apache_2.0-yellowgreen.svg" in it

@dhuseby
Copy link

dhuseby commented Jan 23, 2024

@jamesdanielmarrsritchey
Copy link

Static Badge

![Static Badge](https://img.shields.io/badge/License-Ritchey%20Permissive%20License%20v16-yellow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment