Copyright Engine
  • Monitoring
  • DMCA Takedowns
LoginStart my copyright
Copyright Engine

Any questions?

We're available Monday through Friday from 9am - 6pm CST

Product

  • Registration
  • Monitoring
  • DMCA Takedowns

Company

  • About
  • Contact

Resources

  • Blog
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • Legal Services Agreement

Copyright Engine provides information and software only. Use of Copyright Engine is subject to our Terms of Service, and Privacy Policy.

The Applicable Fees will be based on the specifics of your application but generally range from $44 and $125 and will be charged and collected at checkout.

  1. Home|
  2. Resource Center|
  3. Software and digital|
  4. How to Copyright Source Code

How to Copyright Source Code

Written byCopyright Engine

Published on November 20, 2026

Estimated Read Time: 7 minutes

Table of Contents

Is source code automatically copyrighted?What parts of source code does copyright protect?Do I need to register source code with the Copyright Office?How do I copyright my source code in the United States?1. Confirm who the author is2. Pick the right application3. Describe the work4. Prepare and upload the deposit5. Pay and waitCan I copyright code without publishing it?What does a registration of code not cover?Your next step: gather your deposit this week
How to Copyright Source Code

Table of Contents

Is source code automatically copyrighted?What parts of source code does copyright protect?Do I need to register source code with the Copyright Office?How do I copyright my source code in the United States?1. Confirm who the author is2. Pick the right application3. Describe the work4. Prepare and upload the deposit5. Pay and waitCan I copyright code without publishing it?What does a registration of code not cover?Your next step: gather your deposit this week

Key Takeaways

  • Your code is protected the moment you save it, but you can't sue for infringement in the U.S. until the work is registered.
  • Use the $45 Single Application only if you're the sole author and owner; team-written code or work for hire needs the $65 Standard Application.
  • Register before an infringement starts, or within three months of publication, to keep statutory damages and attorney's fees available.
  • List open source libraries and third-party snippets as excluded material so your claim covers only the code you wrote.
  • You can register unpublished code, and redaction rules let you submit a deposit without exposing trade secrets.

Want to copyright my source code? Protection is automatic once you write it down, but registering with the Copyright Office gives you proof and the right to sue. Here's how it works.

Wondering how to copyright my source code? Protection starts automatically the moment you write the code in a fixed form, like a saved file. Registration with the U.S. Copyright Office is the optional second step: you file an application, pay a fee, and send in a deposit copy of the code.

That second step matters more than most developers realize. Registration gives you a public record of ownership, and it's what lets you file an infringement lawsuit in federal court.

If you're asking whether to copyright my source code at all, the answer depends on what the code is worth to you. This guide covers what copyright protects in code, when registration is worth doing, and how the filing works from start to finish.

Is source code automatically copyrighted?

Yes. Under the Copyright Act of 1976, copyright attaches to an original work the instant it's fixed in a tangible form (17 U.S.C. § 102). Computer programs count as literary works, so the code you save to a drive or push to a repository is protected without a form, a fee or a © symbol.

So is source code automatically copyrighted even if you never publish it? It is. Your private repository is covered, and so is a script sitting on your laptop. Because of the Berne Convention, that protection also reaches most other countries.

Automatic protection has a catch, though. It's hard to prove in a dispute, and it won't get you into court. For the bigger picture on that gap, see our explainer on whether you need to register a copyright to be protected.

What parts of source code does copyright protect?

Copyright protects the expression in your code, not the idea behind it. That means the actual text you wrote, including its structure, organization and comments, is covered. It also covers the object code a compiler produces from it.

A few things sit outside that protection:

  • The underlying idea or method, such as "sort these records by date"
  • Functional elements that are dictated by efficiency or by outside requirements
  • Short phrases, names and standard language constructs
  • Code you didn't write, like open source libraries or third-party snippets

Your registration covers only what you authored. If a third of the project is borrowed, you'll exclude that part on the application. Algorithms raise their own questions, since the method itself isn't protected even when your written version is.

Do I need to register source code with the Copyright Office?

You don't need to, but you'll probably want to. Registration is required before a U.S. work's owner can sue for infringement. It also makes statutory damages and attorney's fees if you register before the infringement starts, or within three months of first publication.

Source code copyright registration also helps in quieter ways:

  • It creates a dated, public record that you claimed the work
  • A certificate made within five years of publication counts as evidence of validity
  • It strengthens your hand when you send a takedown notice or negotiate with an acquirer
  • Investors and buyers often ask for it during due diligence

Should you copyright my source code before launch, or wait? Filing early is cheap insurance, because the benefits above depend on timing. If your code is a throwaway script, skip it. If it's the core of a product, register it. And if you're deciding between keeping the code secret and protecting it through copyright, read trade secret vs. copyright for source code first, because your choice affects what you submit.

How do I copyright my source code in the United States?

You register online through the Copyright Office's eCO system. The general product-filing process is laid out in our step-by-step guide to copyrighting software, so here's the version specific to code.

1. Confirm who the author is

The author is whoever wrote the code, unless it was a work made for hire, in which case it's the employer or the commissioning party. Sort that out before you fill anything in. Employee code and freelancer code follow different ownership rules, and a contract can change the default, so check your agreements before you file.

2. Pick the right application

The $45 Single Application works when one person wrote the work and owns it, and it isn't a work made for hire. Everything else, including a team-written codebase or a work for hire, goes on the $65 Standard Application. Most commercial software lands in the Standard bucket.

3. Describe the work

You'll give the title, the year of completion, the author, whether it's published, and the claim. Say "computer program" for the type of work, and list any pre-existing or third-party code you're excluding.

4. Prepare and upload the deposit

For a program, you send identifying portions of the source code rather than everything. If the code contains trade secrets, the Office lets you redact portions. We cover that in detail in how to submit source code as a copyright deposit.

5. Pay and wait

Pay the fee, submit, and then you wait. You'll get an email confirmation, and the Office may write back with questions if something on the application is unclear. Processing time varies, and the Office posts current estimates on its site. Your effective date of registration is the day your complete application, fee and deposit all arrive, which is why filing early helps.

Copyright Engine prepares and files the application for you.

Can I copyright code without publishing it?

You can. Registration doesn't require you to release the code to the public. Unpublished code is registered as an unpublished work, and you can file whenever you're ready.

Publication does matter in one respect. If you distribute copies, license the software or ship it to customers, the work counts as published. That changes how you fill out the application, and it starts the clock on those three- and five-year windows mentioned earlier.

Keep your deposit privacy in mind too. Copyright Office records of registered works can be inspected, and deposit copies may be copied under certain conditions, such as litigation. That's exactly why redaction rules exist. If your repository holds client credentials, API keys or unreleased features, strip them out of the deposit before you upload anything. It's far easier to leave sensitive material out at the start than to ask the Office to deal with it afterward.

What does a registration of code not cover?

People sometimes assume a certificate is a force field. It isn't. It doesn't stop someone from independently writing similar code, and it doesn't protect the way your software works.

For that, you'd look at patents, which are a separate system with a different standard. A software patent has its own application, cost and standard, so it's worth a separate conversation with a patent attorney.

AI-assisted code is another gray area. The Copyright Office expects you to disclose AI-generated material that's more than minimal and to claim only your own human authorship. Say so on the application rather than hoping nobody asks.

If your situation involves a co-founder dispute, a contract with unclear terms or a large acquisition, talk to a copyright attorney. This article is legal information, not legal advice.

Your next step: gather your deposit this week

Pick the version of your code you want to register, usually the latest stable release. Note the date of first publication, if any, list every contributor, and flag the third-party code that needs excluding. With those four items written down, the application takes under an hour.

You can see the Copyright Office's own overview of the process at copyright.gov/registration.

Sources

  1. U.S. Copyright Office. Registering a Work.
  2. U.S. Copyright Office. Circular 61: Copyright Registration of Computer Programs.
Back to the article

Frequently asked questions

The Copyright Office charges $45 for a Single Application, which suits one author who owns the work and didn't create it for hire. Most commercial software goes on the $65 Standard Application. Special handling for urgent cases costs $800 extra. Those are government fees only, so any service you hire charges on top of them.

A notice such as the © symbol, your name and the year isn't required for protection, but it's still smart. It tells people who owns the code, and it can defeat an innocent infringer defense in court. Put it in file headers and your license file, and keep it current when you update the work.

Yes. You register only the code you wrote, and you exclude the open source portions as pre-existing material on the application. The libraries keep their own licenses. If your project is a modified version of someone else's code, you can claim only your new contributions, not the original.

Not usually. A registration covers the version you deposit, including its authorship at that time. If a later release adds a meaningful amount of new code, register it as a derivative work. Small bug fixes and tweaks generally don't justify a new filing, so many teams register major releases only.

No. Registration doesn't physically block copying, and it doesn't prevent someone from independently writing similar code. What it does is give you a public record of ownership and the legal standing to enforce your rights through a takedown notice or a lawsuit when copying does happen.

Keep reading

Do You Need to Register a Copyright to Be Protected?

Do you need to register copyright to be protected? No, your work is covered the moment you create it, but automatic protection has sharp limits. Here's when…

Trade Secret vs. Copyright for Source Code

Wondering about trade secret or copyright for code? Copyright protects what you wrote, trade secret law protects what stays confidential, and most software t…

How to Submit Source Code as a Copyright Deposit (Trade Secret Redaction)

Learn how to redact source code for copyright deposit: which pages the Copyright Office wants, how to black out trade secrets properly, and how to upload the…