Sell My Company Data

Software code licensing: who owns the code

Software code licensing starts with ownership, not with the repository. Under the Copyright, Designs and Patents Act, an employer is normally the first owner of code an employee wrote in the course of employment. A contractor's code is different: the author is the first owner. An assignment only works if it is in writing and signed. Map who wrote each part before you describe the codebase to anyone.

By Sell My Company DataPublished 2 November 2026

Start my estimate

No files needed to start

At a glance
Sources
3 primary sources
Reading time
About 2 min
What this adds
An authorship map that sorts a codebase into four origin groups (employee, contractor, acquired, open source) and says what proof each needs before it can be offered. It also gives a short evidence list to assemble before the first buyer conversation.
Diagram of four origin groups of code feeding one ownership file
Sort the code by where it came from, then prove each group.

Who owns code written by staff

Code counts as a written work. The Act lists a computer program among literary works, so ordinary copyright rules apply to it.

The default rule is that the writer owns the work. The first ownership rule says the author of a work is the first owner of any copyright in it. The employee exception follows: where a work is made by an employee in the course of employment, the employer is the first owner, unless an agreement says otherwise.

So staff code is usually the company's to offer. Two words carry the weight: employee and in the course of employment. A founder's weekend side project, or code written before the company existed, may fall outside both.

Diagram of an employee's work belonging first to the employer
Staff code in the course of a job starts as the company's.

Contractor code needs a signed assignment

A freelancer or agency is not an employee. The default rule applies: the author owns the copyright. A contract that says you own the output helps only if it assigns the rights.

The assignment rule is specific about form. An assignment of copyright is not effective unless it is in writing signed by or on behalf of the assignor. An email thread saying the work is yours may not meet that test. A licence is a separate thing again, and it may be narrower than you assume.

This is the most common gap in small software companies. The code runs the product and is described as the company's, yet the paperwork for part of it was never signed.

Authorship map

What each origin group needs before it is offered
Where the code came fromWho likely owns itProof to gather
Employees, in their jobsThe company, unless a contract says otherwiseEmployment contracts and role descriptions
Contractors and agenciesThe author, until assigned in a signed documentThe signed assignment or a written licence
Acquired company or productWhoever the purchase agreement assigned it toThe agreement and any assignments it refers to
Open source componentsThe original authors, under their licence termsA list of components and their licences
Diagram of contractor code needing a signed written assignment
A contractor's code moves to you only by signed assignment.

What to assemble before a buyer asks

Do not start with the code. Start with a short ownership file a buyer can read in minutes.

  1. List every repository and the years it was active.
  2. For each, list who committed: staff, contractors, agencies.
  3. Match each contractor to a signed assignment. Mark the gaps plainly.
  4. List third party and open source components with their licence names.
  5. Note anything excluded: customer data in test fixtures, credentials, secrets and personal data.

A repository with unresolved authorship can still be described honestly as partly cleared. It cannot be described as fully owned. If a gap matters, get a solicitor to review the assignment position before any conversation about a licence. This guide is general information, not legal advice.

Remove secrets and personal data from history before anyone sees a sample. Keys committed years ago are still in the history.

Describe the codebase, do not send it

The first message to a buyer is a description. Name the languages, the rough size, the years of history and whether commit messages and review comments survive. Say what proportion of authorship is documented as company owned, in words you can back up.

History is often worth more than the final snapshot, because commit messages and reviews record why a change was made. That depends on the history being intact, so check it before any migration or tidy up squashes it.

Sources

  1. Copyright, Designs and Patents Act 1988, section 11 (legislation.gov.uk). Checked 2 November 2026. Relevant text: The author of a work is the first owner of any copyright in it
  2. Copyright, Designs and Patents Act 1988, section 90 (legislation.gov.uk). Checked 2 November 2026. Relevant text: An assignment of copyright is not effective unless it is in writing signed by or on behalf of the assignor
  3. Copyright, Designs and Patents Act 1988, section 3 (legislation.gov.uk). Checked 2 November 2026. Relevant text: a computer program

Questions

Does the company own code its employees wrote?

Usually yes. Where an employee makes a work in the course of employment, the employer is the first owner unless an agreement says otherwise. Work outside the job, or before the company existed, needs checking separately.

Do we own code written by a freelancer?

Not automatically. The author is the first owner. Ownership moves to you through a written assignment signed by the freelancer. A licence may give you use of the code without ownership.

Can we license code that includes open source parts?

The open source parts stay under their own licences. List them separately and describe only the code you can show you own.

Should I send a sample of the repository first?

No. Send an ownership description. Samples come later, after secrets and personal data are removed and the authorship position is clear.

Is this legal advice?

No. It is general information about how UK copyright ownership works. Have a solicitor review any ownership gap before you rely on it.