← All files

MIT HEADER

A two-line MIT notice for the top of source files, with comment-syntax notes.

[ DOWNLOAD ][ MARKDOWN ][ SOURCE ]

The per-file notice for projects licensed under MIT: a copyright line and an SPDX identifier, plus notes on comment syntax for common languages.

USE

  • Paste the two lines at the top of each source file.
  • Keep the full license text in the project’s LICENSE file.
  • Replace <year> and <copyright holders> with your details.

NOTES

  • The SPDX line is optional but recommended; scanners understand it.
  • The header file includes comment-syntax examples for C-family languages, shell, Python, HTML and SQL.

SOURCE

SPDX License List — MIT: https://spdx.org/licenses/MIT.html SPDX license identifiers: https://spdx.dev/learn/handling-license-info/

FULL TEXT

[ DOWNLOAD ]
MIT LICENSE HEADER
==================
Version 1.0 — 2026-10-17

Use this notice at the top of source files released under the MIT License.
Replace every value in angle brackets.

COPY-PASTE NOTICE
-----------------
Copyright (c) <year> <copyright holders>
SPDX-License-Identifier: MIT

NOTES
-----
- Keep the full MIT license text in a LICENSE file at the project root.
- "SPDX-License-Identifier: MIT" is the machine-readable form of the same
  statement, understood by licence scanners and package managers.
- Comment syntax: prefix with // in C, C++, Java, JavaScript and Go;
  # in shell, Python and Ruby; <!-- --> in HTML and XML; -- in SQL.
- Do not remove the copyright line. It is the notice the licence requires.

SOURCES
-------
SPDX License List — MIT: https://spdx.org/licenses/MIT.html
SPDX license identifiers: https://spdx.dev/learn/handling-license-info/

VERIFY SHA-256

Download the file, then choose it here. The checksum is compared locally in your browser.

Expected cad3614932d24f416db87ee509b6163a92052bda68714f59d3ea50a1d9deb135

CITE

MIT HEADER (v1.0, 2026-10-17). Original. https://original.wales/files/mit-header/ SHA-256: cad3614932d24f416db87ee509b6163a92052bda68714f59d3ea50a1d9deb135. Source: https://spdx.org/licenses/MIT.html.

← All files