MIT License Generator

Free MIT License generator — enter your name and year, get a ready LICENSE file instantly

Generate your MIT License file in seconds. Enter your name (or company name) and year.

⚡ Quick Generator

Fill in your details and get a ready-to-use LICENSE file

Generating...

After generating — what to do next

1. Save as LICENSE file

Place the file in the root of your repository (no file extension):

my-project/
├── LICENSE        ← Save here
├── README.md
└── src/

2. Add to package.json (Node.js/NPM)

1
2
3
4
5
{
  "name": "my-package",
  "version": "1.0.0",
  "license": "MIT"
}

3. Add badge to README.md

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

4. Add SPDX identifier to source files (optional)

1
2
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Your Name
1
2
# SPDX-License-Identifier: MIT
# Copyright (c) 2026 Your Name

Frequently asked questions

What year should I use? Use the current year, or the year the project was first created. For long-running projects, some use a range: 2020-2026.

What name should I use? Use your full name, company name, or GitHub username. Example: John Doe, Acme Corp, or johndoe.

Can I use multiple authors? Yes. You can list all authors: Copyright (c) 2026 Alice Smith, Bob Jones

Or use your organization: Copyright (c) 2026 The ProjectName Contributors