Published on November 20, 2026
Estimated Read Time: 8 minutes
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 PDF.
To redact source code for copyright deposit, you submit the first 25 and last 25 pages of your code and black out the trade secret sections, as long as the blocked-out portions are smaller than what remains visible. Save the pages as one PDF with the program's title on them, then upload it in eCO with your application.
Registration doesn't require you to hand the Copyright Office your whole codebase. The Office only needs enough of the work to identify it and see that it contains copyrightable authorship. That's what makes redaction possible, and it's why you can register software without publishing your crown jewels.
The catch is that the rules are specific. Block out too much, or the wrong pages, and an examiner will write back asking for a new deposit. Here's how to get it right the first time.
No. For most programs, the Copyright Office asks for identifying portions only: the first 25 and last 25 pages of the source code. If the program is shorter than 50 pages, you'd send the whole thing.
Why those pages? The beginning of a program usually shows its structure, headers and author notes, and the end shows how it wraps up. Together they give an examiner a fair sample of the work. A page count of 50 total is far easier to review than hundreds of thousands of lines.
If you want the general rules on what a deposit copy is and which kinds of works need one, our guide to what a deposit copy is and what you need to submit covers it. This article sticks to the redaction mechanics.
Yes, with limits. The Office has long recognized that some programs contain trade secret material, such as a proprietary algorithm or hard-coded credentials, and it offers special deposit options for that situation. The registration is public record, and deposits can be inspected at the Office or requested under certain conditions, so you shouldn't treat the deposit as a vault.
If you're still deciding whether registration or secrecy is the better protection for your code, read trade secret versus copyright for source code first. Many developers do both: register the copyright and keep the sensitive logic redacted.
The Copyright Office's guidance for programs containing trade secrets gives you a few routes. You pick one, and your choice depends on how much of the code is sensitive:
These options are summarized from the Office's current guidance, and the details can change, so check the official deposit requirements for computer programs before you prepare your file.
Think of it as photocopying a document and taking a black marker to it. The goal is a page where an examiner can see that code exists, can see roughly where it was, and can't read the protected parts. Here's the process.
Don't redact by instinct. Go through the pages you'll submit and mark only what truly qualifies: a unique algorithm, proprietary formulas, API keys, passwords, or business rules a competitor could use. Boilerplate, imports and standard library calls aren't secrets, and blacking them out wastes your redaction budget.
Pull the first 25 and last 25 pages of the source in the order they appear in the program. Use a readable monospaced font, and keep line breaks and page order intact. Include the pages that carry your copyright notice or title block if the code has them, because they help the examiner connect the deposit to your application.
Use solid black bars. People searching how to blank out source code, Copyright Office style, often get this step wrong. Do this in a PDF editor with a true redaction tool, not by drawing a black rectangle on top of the text. A rectangle sits above the text layer, and anyone can select, copy or delete it to reveal what's underneath. A real redaction tool removes the underlying characters when you apply it.
Don't delete lines either. Blocked-out lines should still occupy their place on the page, so the examiner sees that code was there and can judge the proportion.
Count roughly how much of each page is blocked versus visible. If the blocked-out material is more than the visible material, the Office may reject the deposit. When your secrets are too extensive for the redacted option, switch to the first and last 10 pages with no redaction, or the object code option.
A single PDF is the safest choice. You'll upload it through the Office's electronic system, eCO, alongside your application, which costs $45 for a Single Application or $65 for the Standard Application, depending on your eligibility.
Before you upload, run through this checklist:
If you'd rather not troubleshoot a PDF export and an eCO upload at the same time, Copyright Engine prepares the application and walks you through the deposit before it files.
This is the situation most developers actually face: the core algorithm lives in one module in the middle of the program. In that case, the first and last 10 pages with no blocking is often the cleanest answer. The Office is looking at pages that rarely contain your most sensitive logic, and you don't have to redact anything.
If the secrets run through the beginning or end, such as a header with embedded keys, use the redacted 25 and 25 option and black out those specific lines.
When you're unsure which option fits, or the code mixes open source and proprietary components, talk to a copyright attorney. This article is legal information, not legal advice, and a bad deposit can leave you with a registration you can't rely on in court.
An examiner reviews your application and deposit. If the redaction is acceptable, you get a registration. If it isn't, the examiner will write to you through eCO and ask for a corrected deposit, and you'll have a window to respond.
Keep a complete unredacted copy of the code you registered, plus your redacted version, with the date. If you ever need to prove infringement in litigation, you'll want to show exactly what the registered work contained. For the end-to-end filing steps beyond the deposit, including the application fields for software, see how to copyright source code. The broader process is laid out in the step-by-step guide to registering with the U.S. Copyright Office.
Before you start an application, spend half an hour with your repository. List the files that hold real secrets, work out which deposit option fits, and export a test PDF of the pages you'd submit. Try to copy text out of the redacted areas. If nothing comes out, you're ready to file with confidence.