Starting out

Who Owns the Source Code You Paid For in India

Indian law gives the copyright to whoever wrote the code, not to whoever paid for it. What the Copyright Act requires, and what ownership means in practice.

Illustration: a signed deed with a seal, an arrow, and a locked crate of code

The short answer

If you hired an outside developer or an agency in India and nobody signed an assignment, they own the copyright in your source code. You bought a working product. You did not buy the right to copy it, modify it, or hand it to the next developer.

That is the answer to "who owns the source code when you hire a developer in India", and it surprises almost everyone who has already paid. Three parts of the Copyright Act, 1957 decide it, and every one of them runs against the buyer by default.

  • Section 17 makes the author the first owner. Software is not on the short list of commissioned works the Act gives to the person who paid for them.
  • Section 19(1) makes an assignment valid only if it is in writing and signed. A verbal assurance, a line in a proposal, and an invoice that says "full ownership" are not assignments.
  • Sections 19(5) and 19(6) fill the blanks against you. An assignment that forgets to state a duration is deemed to last five years. One that forgets to state a territory is presumed to cover India only.

Two things follow from that, and the second is the one nobody writes about. The first is paperwork: get a written assignment that names the four things the Act asks for. The second is that owning the copyright and being able to run, change and move your own software are separate achievements. The second half of this page is about the second one, because a client who wins the ownership argument and cannot deploy a fix has not actually got anything.

This is a commercial guide written for the person signing, not legal advice. The statute is quoted below so you can read it yourself, and the deed belongs with a lawyer.

Start with the classification, because it decides which rules apply. Section 2(o) of the Copyright Act, 1957 says "literary work" includes "computer programmes, tables and compilations including computer databases", and section 2(ffc) defines a computer programme as "a set of instructions expressed in words, codes, schemes or in any other form, including a machine readable medium, capable of causing a computer to perform a particular task or achieve a particular result". Your application, its database schema and its configuration are literary works. So is the markup and the stylesheet.

Section 17 then opens with the rule that decides most disputes:

The author of a literary work, under section 2(d)(i), is "the author of the work": the person who wrote it. Not the person who thought of it, described it, project managed it or paid the invoice.

Section 17 has a list of exceptions, and the two that matter here are clause (b) and clause (c). Clause (b) is the commissioning exception, and it is deliberately narrow:

Read the list again. A photograph, a painting, a portrait, an engraving, a cinematograph film. Software is not there, and neither is a website. Commissioning code and paying for it does not move the copyright under clause (b), because clause (b) was never written to cover it.

Clause (c) is the employment exception:

The operative words are "contract of service". That means employment. Hiring an agency or a freelancer is a contract for services, which is a different legal animal, and clause (c) does not reach it. So the default splits cleanly:

Who wrote the codeWho owns the copyright by default
Your own salaried employee, in the course of employmentYour company, under section 17(c)
An agency or studio you engagedThe agency, as author
A freelancer you engaged directlyThe freelancer
A subcontractor the agency engagedThe subcontractor, unless they signed something with the agency
Two plinths: one holds a code document and a quill, the other has a dotted outline
The money moves one way and the copyright does not follow it back. Only a signed assignment fills the empty plinth, which is why the outline stays dotted on every project where nobody wrote one.

That last row is the one that quietly breaks assignments. A developer can only assign what the developer owns. If three of the four people who wrote your application were engaged by your agency on a messaging app with no paperwork, the assignment clause in your agreement reaches the agency and stops there.

Why "work made for hire" does not help you here

A large share of what is written in English about code ownership is written about the United States, where the Copyright Act has a "work made for hire" doctrine that can, in defined circumstances and with a signed writing, make the commissioning party the author of a specially ordered work. India has no equivalent for commissioned software. Section 17 is the whole of the Indian rule on first ownership, and the commissioned category in clause (b) is the closed list quoted above.

This matters practically, because the phrase travels. Contracts drafted from American templates turn up in Indian projects saying the deliverables "shall be considered a work made for hire". On its own, that sentence does nothing under Indian law. What does the work is an assignment that satisfies section 19, and a well drafted clause says both: the work made for hire wording for whatever foreign law might apply, and an assignment that stands up here.

An assignment is a form, not a sentence

"All intellectual property shall belong to the Client" is the clause most Indian software agreements contain, and on its own it is close to worthless. Section 19 sets out what an assignment has to do.

Section 19(1) is the gate:

Section 19(2) is the content requirement, and it is the one most clauses fail:

Section 19(3) adds the money:

Four things, then: the work, the rights, the duration, the territory, with the consideration stated. Our guide to what to change in a website development agreement sets each of them out as wording you can paste into a draft, along with the clause that pushes the obligation down to the agency's own subcontractors. What follows here is what happens when they are missing, because that is the case most readers are actually in.

The five year clock nobody mentions

The Act does not leave the blanks blank. It fills them, and it fills them in favour of the author.

So an assignment clause with no stated term is a five year licence that expires without anybody sending a notice, and one with no stated territory stops at the border. If your product has users in the Gulf, in Singapore or in the United States, a clause that is silent on territory did not assign you the rights that matter there.

This is not a theoretical reading. It was decided for a software dispute by a division bench of the Delhi High Court in Pine Labs Private Limited v. Gemalto Terminals India Private Limited, FAO (OS) 635 of 2009 and 636 of 2009, decided on 3 August 2011. Pine Labs had written a payment application and a master service agreement said it assigned the copyright to Gemalto. The agreement said nothing about duration or territory. More than five years later Pine Labs said the copyright had come back to it, and the court agreed:

The bench added that it did not matter how the agreement was characterised: "whatever be the nature of the MSA, the provisions contained in section 19(5) and (6) would inevitably be triggered". The single judge had held the opposite, on the theory that an equitable assignment sits outside the statute. The division bench set that aside and restored the injunction against the company that had paid for the software.

A ten block track with the first five filled, a key, and an arrow looping back
The clock starts on the date of the assignment, not on the day the project ended or the last invoice was paid. On a long engagement that date is often years earlier than people assume, and nothing arrives in the post to warn you when it runs out.

There is a fourth default that almost nobody writes around. Section 19(4):

Read that against the kind of project that gets shelved. A module is built, the launch slips, and the thing sits unused for a year. The closing words are an invitation to specify, so specify.

What the parties wrote down still decides it

None of this means the statute beats your contract. It means the statute fills whatever your contract left out. Where the parties did write it down, the writing governs, including the carve out that lets a studio keep its own reusable libraries.

The Bombay High Court took that route in Exegesis Infotech (India) Private Limited v. Medimanage Insurance Broking Private Limited, decided on 15 July 2015. A software company had customised its product for an insurance broker over several years and then claimed the source code was its own. A signed memorandum recorded that "Medimanage will hold the complete ownership of the software" while the developer kept the rights in its background technologies, and required the source code to be handed over on termination. The court refused the developer's injunction, holding that section 17 yields to an agreement to the contrary and that this was one.

The lesson from the two cases together is simple. Write down what each side owns, and write down the duration and the territory. Silence is not neutral.

If you already paid, here is how to find out what you own

Most people reading this are not holding a draft. They are holding a finished website or application and a vague memory of what was agreed. Work through it in this order, and do it on a good day rather than on the day you want to leave.

  1. Find the document that is actually the contract. Often it is a quotation you replied to with an approval, not a signed agreement. That is binding, and it is probably silent on ownership.
  2. Check that it is signed by the right legal entity. The assignor has to be whoever holds the copyright. If you contracted with an individual and the invoice came from a company, or the other way round, say so to your lawyer now.
  3. Look for the four things. Does it identify the work, name the rights, state a duration, and state a territory? Missing duration means five years from the date of assignment, and the date of assignment is probably earlier than you think.
  4. Ask who actually wrote it. Employees of the studio, or freelancers? Ask for written confirmation that every contributor assigned their rights to the studio before they started. A studio with good practice will have this and will say so in a sentence.
  5. List the third party components. Ownership of what your developer wrote tells you nothing about the paid theme, the licensed library, or the open source package underneath it. More on that below.

If the answer to any of these is bad, the fix is usually cheap and almost always easier while the relationship is still friendly: a short confirmatory deed of assignment, signed now, that names the work, assigns the rights for the full term of copyright, worldwide, and records that the consideration is already paid. Developers sign these routinely. Ask for it in the same message as the next piece of work, not in the message where you say you are leaving.

If the developer has already stopped replying, ownership is only part of the problem and probably not the urgent part. Getting your website back from a previous developer deals with the accounts, in the order that recovers them fastest.

If you are reading this before you hire rather than after, the choice in front of you is usually one freelancer against a studio, and the default above applies identically to both. Freelancer vs agency for website development decides between them on continuity and ownership instead of on the rate, and lists the terms that belong in the agreement either way.

Here is the part the legal pages leave out. You can hold a perfect assignment, signed, with term and territory, and still be unable to change a line of your own software. Copyright is a right to stop other people. It is not a copy of the code, a running deployment, or a password.

Five things have to be true before "we own it" means anything operationally.

1. The repository is in your own organisation account

Not transferred at the end of the project. Created in your own organisation on GitHub, GitLab or Bitbucket on day one, with the supplier added as a collaborator. This single arrangement removes most of what goes wrong later, because nothing has to be recovered from anybody.

It also keeps the parts of a codebase that are not the code: the commit history that explains why a thing is the way it is, the issue and pull request discussion, the branch protection rules, and the continuous integration configuration. A clone taken at the end of a project carries the files and loses all of that.

When the work is already in somebody else's account, a transfer is a documented operation on all three hosts and takes minutes. Ask for it as a transfer rather than a copy.

2. The domain and DNS are registered to you

The registrant on the domain should be your legal name, with your email as the registrant contact, in an account you can sign in to. Whoever controls the registrar account can move your website, your email and your customers to a different server in an afternoon, and no assignment clause prevents that. If you are not sure what is on record, how to find out who owns a domain covers the lookup.

3. Every service account is in your name, with the supplier invited

Make the list before the project starts and keep it as an appendix: hosting or cloud, database and backups, the Apple and Google developer accounts, the payment gateway, transactional email and SMS, analytics, Search Console, the error tracker, and any paid component licence. Each one has an owner of record. That owner should be your company, with your supplier added as an administrator or a developer.

The app store accounts and the payment gateway are the two people get wrong most often, and they are the two that are hardest to unpick afterwards, because both are tied to the verified identity of a legal entity rather than to a login. An application published under an agency's developer account is published by the agency.

Store accounts are a separate asset from the copyright in the code, and an assignment of one says nothing about the other. The guide to app developer accounts for a business in India covers what Apple and Google require from an Indian entity before they will verify it, which of the two account types your business can actually use, and what a later transfer of a published app really depends on.

4. There is a written list of third party and open source components

This is the item almost nobody asks for, and it is the one that decides what you can actually do with code you own. The list needs a row per component with the name, the version, the licence, who holds the paid licence or purchase code, the renewal date and the annual cost.

Two reasons it earns its place. A paid component licensed to the agency rather than to you may or may not be transferable, and finding out which in the week after the agency stops replying is the expensive way to learn. And an open source licence can carry conditions that travel with the code: permissive licences such as MIT and Apache 2.0 ask for little more than attribution, while copyleft licences such as the GPL attach obligations to distribution. None of that is a reason to avoid open source, which is in everything. It is a reason to know what is in your product before you decide to sell it, licence it to a customer, or put it in an app store.

A crate of code passing between two hands beside a ticked checklist and day squares
Run the test with a developer who has never touched the project and who is not allowed to call the current supplier. Whatever they cannot do after a day of trying is a gap in the delivery, and it is far cheaper to find it before the final invoice than after it.

5. It passes the handover test

Every item above is a proxy for one question, and the question is the only acceptance test for ownership that cannot be argued with:

For the answer to be yes, a short list has to be true. There is a README that takes a new machine to a running local copy. The environment variables are documented by name, with the values in a shared vault rather than in somebody's inbox. The deployment is a documented command or pipeline rather than a person. A database restore has been performed at least once by somebody, from a backup, successfully. The accounts list and the component list exist and are current.

Run the test before the final invoice, not after. The cheapest version is to put a second developer in front of the repository for a day and ask them what they could not do. Ask us to do it if the project is big enough to be worth an outside pair of eyes, and treat anything that comes back as a defect in the delivery rather than as a favour.

Frequently asked questions

Who owns the source code when you hire a developer in India?

By default the developer does. Section 17 of the Copyright Act, 1957 makes the author the first owner, and software is not among the commissioned works that section 17(b) gives to whoever paid. Only a written, signed assignment under section 19 moves it, and it has to state the duration and the territory or the Act supplies five years and India.

Do I own my website code if I paid for it?

Paying for it makes you the owner of the deliverable and the person entitled to use it for the purpose it was made for. It does not by itself make you the owner of the copyright, which is the right to copy, modify, license and hand it to somebody else. Those are separate, and only the second one needs paperwork.

Is an email saying the code is mine enough?

Possibly, and it is much better than nothing, but it is not what the statute asks for. Section 19(1) requires a writing signed by the assignor or a duly authorised agent, and section 19(2) requires the work, the rights, the duration and the territory to be specified. An email with no duration is an assignment the Act will read as lasting five years. Convert it into a short signed deed while everybody is still friendly.

Can my developer reuse my code for another client?

If they still hold the copyright, generally yes, and this is usually the real reason the question matters. A proper agreement separates the custom work, which is assigned to you, from the developer's pre-existing reusable material, which stays theirs and is licensed to you. Anything not declared as reusable before the first invoice should count as custom work.

What should a software development agreement say about the source code?

It should identify the custom work, assign the entire copyright in it to you for the full term, state that the territory is worldwide, record that the consideration is included in the fees, state that the assignment does not lapse under section 19(4), and require the supplier to have obtained written assignments from every employee and subcontractor before they started. It should also name the repository as an account you own.

Does a non-disclosure agreement give me ownership?

No. A non-disclosure agreement controls what somebody may tell other people about your project. It says nothing about who holds the copyright, and the two are routinely confused because they arrive in the same email. For the order those two documents belong in, and what a non-disclosure agreement does and does not reach, see how to protect your app idea in India.

Start here

  1. Find the contract or the approved quotation and read what it says about intellectual property. If it says nothing, that is your answer.
  2. Check whether the ownership clause states a duration and a territory. Missing either one is the five year and India problem above.
  3. Ask your developer, in writing, whether every contributor assigned their rights before starting work.
  4. Ask for the list of third party and open source components with their licences and renewal dates.
  5. Run the handover test on what you have: could somebody else take it over in a week?

Any item on that list that comes back badly is fixable while the relationship is good and expensive afterwards. If you are about to commission new work rather than audit old work, settle ownership in the brief: writing a software brief that gets an accurate quote covers what else belongs in that document, and how to choose a SaaS development company covers the checks that tell you early whether a supplier intends to hand over cleanly.

We build web applications and websites and SaaS products on the arrangement described above: your repository, your accounts, a signed assignment of the custom work, and a component list before the first milestone is invoiced. If you have an existing project and you want somebody to tell you honestly what you own, send us the details and we will read the agreement and the repository and say what is missing.

Services for this

See All Services

Want this built properly?

Send a written enquiry and we reply by email with questions. A call is optional, and free. Then you get the scope in writing and a fixed quote for the first phase.

What happens next

  1. You send a written enquiryTell us the problem.
  2. We reply by emailWith our questions.
  3. A written scope and quoteA call only if you want one.
Based inTamil Nadu, India
ProcessWritten first, a call only if you want one