guide · rules

Who owns the code a developer writes for you (UK)

Paying a developer does not, by itself, make the code yours. Under UK law the person who writes it owns it, unless they are your employee or they sign it over in writing. This guide explains the rules for each hiring route, the accounts that matter as much as the code, and where AI-written code stands.

who-owns-the-code.md
reading
About 7 minutes
updated
25 November 2026
sources
11 published sources, linked where cited

The short version

  • Code is protected by copyright as a literary work, and so is the preparatory design material for it (CDPA s3 (opens in a new tab)).
  • The author is the first owner. Code your employee writes in the course of their job belongs to you; a contractor’s, freelancer’s or agency’s does not (CDPA s11 (opens in a new tab)).
  • An assignment of copyright only works if it is in writing and signed by or for the person assigning it (CDPA s90(3) (opens in a new tab)). A paid invoice is not enough.
  • Owning the code is half the job: the repository, domain, hosting and app store accounts should be in your name from day one.
  • For code an AI tool wrote by itself, nobody can promise you a copyright position: the law has a specific rule, and the government proposes to change it (CDPA s9(3) (opens in a new tab), government report (opens in a new tab)).

The default rule: whoever writes it owns it

UK copyright law treats software as a “literary work”. That covers the computer program itself and the preparatory design material for it (CDPA s3 (opens in a new tab)), which can include specifications and designs written for the program.

Section 11 sets the starting point: the author of a work is the first owner of any copyright in it (CDPA s11 (opens in a new tab)). The one big exception is employment. Where an employee makes a work in the course of their employment, the employer is the first owner, subject to any agreement to the contrary.

There is no equivalent rule for work you commission. A freelancer, a contractor, a studio or an offshore firm is not your employee, so what they write belongs to them, or to their own employer, until it is assigned to you.

Who owns it, route by route

Who owns the code by default, and what to put in place
RouteWho owns the code by defaultWhat to put in place
EmployeeYou, for code written in the course of their employment (s11(2) (opens in a new tab))An employment contract that deals with IP, so work done partly out of hours or on a personal laptop is not a grey area
Day-rate contractorThe contractor, or their limited companyA written assignment signed for the contractor’s company, covering everything they write for you (s90(3) (opens in a new tab))
Marketplace freelancerIt depends on the platform’s terms. PeoplePerHour’s assign the freelancer’s IP to the buyer “upon successful payment” (s3.5 (opens in a new tab))Read the platform’s terms. Any work agreed or paid for off the platform needs your own written assignment
Fixed-price team or agencyThe firm, as employer of the people who wrote itA written assignment from the firm, and confirmation that it holds assignments from any subcontractors it uses
Offshore or nearshore teamThe supplier, until it is assignedA written, signed assignment, and advice on how the contract’s governing law affects it if the supplier is abroad

“Signed by or on behalf of” matters when the developer works through a company. The assignment should come from the company that employs or engages the developer, signed by someone with authority to sign for it. For how platform terms fit in, see the marketplace route.

A written, signed assignment

Ownership moves by assignment, and section 90(3) is strict: an assignment of copyright “is not effective unless it is in writing signed by or on behalf of the assignor” (CDPA s90(3) (opens in a new tab)). An email saying “it’s yours”, a handshake or a paid invoice does not do it.

In our view a good assignment clause covers:

  • all code, designs, documentation, database designs and preparatory material made for you;
  • when ownership passes, for example on each milestone payment, and what happens to work done before a project stops early;
  • work done by anyone the supplier subcontracts to;
  • a list of the open-source and third-party components used, which stay under their own licences and cannot be assigned to you;
  • disclosure of where AI tools were used, so you know which parts the AI section below applies to.

Tying ownership to payment is fair to both sides, as long as each payment carries the work done to date with it. The Vetting Kit includes this clause in its contract checklist.

Owning the accounts as well as the code

Copyright in the code is little use if a former supplier holds the keys. The government’s Service Standard tells public service teams to “keep ownership of the intellectual property of new source code”, partly so they are less likely to get locked in to a single supplier (Service Standard point 12 (opens in a new tab)). It is written for public services, but the reasoning carries over. The same manual’s technology guidance advises reducing the chance of getting locked in to specific tools and providers (Choosing technology (opens in a new tab)).

Open these in your own name, or move them there before the final payment:

  • the code repository (where the code and its history are stored), in an organisation account you control, with the supplier added as a member;
  • the domain name and its DNS settings;
  • hosting, cloud, database and backup accounts;
  • analytics, email sending, payment and error-tracking accounts;
  • the Apple Developer account, $99 a year, where an organisation needs a D-U-N-S Number and its legal entity name appears as the seller (Apple (opens in a new tab));
  • the Google Play Console account, a one-off $25 fee, which needs a D-U-N-S number for an organisation (Google (opens in a new tab), Google (opens in a new tab));
  • passwords and recovery codes, in a password manager you control.

A D-U-N-S number is a company identifier issued free by Dun & Bradstreet (Google (opens in a new tab)). Source-code escrow, where a third party holds a copy of the code for you, is sometimes suggested. We found no authoritative source that makes it standard for small builds, so treat it as optional. Holding the repository and accounts yourself from day one does the same job more simply. The free Ownership Check shows what to fix first.

Code written with AI tools

Much new code is now written with AI assistants. UK law has a specific rule for a computer-generated work, one with no human author: the author is taken to be “the person by whom the arrangements necessary for the creation of the work are undertaken” (CDPA s9(3) (opens in a new tab)).

That rule is under review. The government’s Report on Copyright and AI of 18 March 2026 proposes removing protection for wholly computer-generated works, after it continues to monitor their use and impact. It also says copyright should continue to protect works created with AI assistance (government report (opens in a new tab)). That is a proposal, not law.

So nobody, us included, can promise you a copyright position for code an AI tool wrote on its own. What you can do is make sure the contract assigns whatever rights the supplier has, ask them to disclose where AI tools were used, and have the code reviewed. Code written with AI tools covers the review.

Be wary of firm promises

If a supplier promises that AI-generated code is definitely protected by copyright and definitely yours, ask what that rests on. Under section 9(3) and the government’s current proposal, the position for wholly computer-generated work is not settled.

How our team handles ownership

When our team builds for you, the price is fixed and agreed in writing before work starts. The code is assigned to you in writing on payment. The repository and accounts are opened in your name from the first day, so there is nothing to hand back. Where we touch personal data we sign a data processing agreement, and the handover is documented. You own the code sets this out in full.

Whoever you hire, ask for the same things. If a supplier will not put the repository in your name, that tells you something.

General information about UK rules, not legal advice. Who owns a particular piece of work depends on its facts and the wording of the contract; for your own position, speak to a solicitor.

Questions people ask

If I paid for the code, do I own it?

Not automatically. The author is the first owner unless they are your employee (CDPA s11 (opens in a new tab)), and ownership only moves by a written, signed assignment (s90(3) (opens in a new tab)).

Does my employee’s code belong to the company?

Code written in the course of their employment does, subject to any agreement to the contrary (CDPA s11 (opens in a new tab)). An IP clause in the employment contract avoids arguments about the grey areas.

Who owns code an AI tool wrote?

For a work with no human author, UK law treats the person who made the arrangements for it as the author (CDPA s9(3) (opens in a new tab)), and the government proposes removing protection for wholly computer-generated works (report (opens in a new tab)). Nobody can promise you a position, so deal with it in the contract.

Do I need source-code escrow?

We found no authoritative source that makes it standard for small builds. Owning the repository and accounts from day one is simpler, and usually enough.

What if a former developer will not hand over the code?

Check what the contract says about ownership and handover, and which accounts are in whose name, then take legal advice. Our Ownership Check helps you list what you hold.

Not sure which way to hire?

The free Hire Route Finder asks ten questions about your project, budget and team, then shows the route that fits, what it really costs and what to watch for. No sign-up, nothing leaves your browser.