Skip to main content

License Header Generator

v1.0.4

Generate source code license header comments for project files.

Generates source code license header comments for project files — SPDX identifiers, copyright year, author name — formatted for C/C++, Java, Python, Shell, SQL, and other comment styles.

How to use
  • Select your license (MIT, Apache 2.0, GPL, LGPL, etc.) and enter copyright holder name.
  • Choose the comment style matching your file type.
  • Copy the header and paste it at the top of each source file.
License header
/*
 * Copyright (c) 2026 Your Company
 * Licensed under the MIT License
 */