whatlicense.org

Your Perfect Match

MIT

You want maximum freedom with minimal friction. The MIT License lets anyone do almost anything with your code — including using it commercially, modifying it, and distributing it — as long as they include your copyright notice. It's the most popular open-source license in the world.

License Overview

1. License Overview

A quick summary of what you are legally allowing, requiring, and limiting.

Permissions

  • Commercial use
  • Modification
  • Distribution
  • Private use

Commercial use:A startup can use your library in their paid product without asking permission.

Modification:A developer can fork your code, rewrite parts of it, and release their version.

Distribution:Anyone can bundle your code into their own software and redistribute it.

Private use:A company can use your code internally without telling anyone.

Conditions

  • License & copyright notice

License & copyright notice:They must include your original MIT license text and copyright in their project.

Limitations

  • Liability
  • Warranty

Liability:If your code crashes their servers, they cannot sue you for damages.

Warranty:You make no promises that the code works correctly or is fit for any purpose.

File Header Generator

2. File Header Customizer

Personalize your license headers before copying them to your files.

Project Details
Processed locally. Never saved.
/**
 * 
 * Released under the MIT License.
 * See: https://opensource.org/licenses/MIT
 */

Full License Text

3. Full License Text

Save this as a LICENSE file in your repository root.

MIT License

Copyright (c) year fullname

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.