Writing, photos, and illustrations are protected by copyright.
You can probably picture that pretty easily.
But did you know that programs have copyright, too?
To me, code feels super mechanical. So I started wondering: can there really be creativity in it? And if so, how does that creativity show up?
When you build an AI app, you see a lot of code on the screen.
Lines of English-looking words and symbols, and if you're a programming beginner, it can be hard to tell what any of it means.
Besides, a program exists to make a computer do things.
Unlike a novel or an illustration, isn't it just a list of fixed instructions?
So where exactly is the creativity in code?
In this article, we'll try reading some short code in plain language and think about that question.
Later on, we'll look at two Japanese court cases that recognized creativity in a program, and one case where it wasn't proven well enough.
Seeing what the courts paid attention to might change your picture a little.
1. What Is a Program, Anyway?
Put simply, a program is a combination of instructions that gets a computer to do work.
For example, take an app for finding AI hackathon events. You'd want the computer to:
- Load the list of events
- Pick the events happening from today onward
- Sort them by date, earliest first
- Show them on the screen
We write those instructions in a programming language such as Python or JavaScript, and what we write is called "code."
But writing code and creating the kind of creative expression that copyright protects aren't always the same thing.
Let's start by looking at some really simple code.
2. Let's Read Just Two Lines of Code!
Here's a little Python program.
def add(a, b):
return a + b
Looks hard if you've never seen it, right?
But in plain language, it's simple!
def add(a, b):
This means "set up a process called add that receives two values, a and b."
return a + b
And this means "add a and b, and give back the result."
If a is 3 and b is 5, the answer is 8.
That's all it is.
Does this code have copyright?
This is the key point of the article.
Under Japanese copyright law, programs are listed as one type of copyrightable work.
But that doesn't mean every piece of code has creativity.
Anyone who has learned programming would write that addition almost exactly the same way.
Short, standard snippets like this often leave little room for different choices, or are simply commonplace, so they may not be seen as creative on their own.
Nobody gets to monopolize the idea of "adding two numbers" through copyright.
3. Same Result, Different Way of Writing?
Now let's pick only the events happening from today onward from an event list.
Way A
upcoming = []
for event in events:
if event["date"] >= today:
upcoming.append(event)
In plain language, that says:
"Prepare an empty list."
"Check the events one by one."
"If the date is today or later, add the event to the list."
But you can also write it like this.
Way B
upcoming = [
event
for event in events
if event["date"] >= today
]
This also picks the events that meet the same condition.
This example assumes the dates are in the same format and can be compared properly.
A lines up the instructions step by step, while B packs them into a shorter form.
In other words, there are choices in how you write code, even when the result is the same.
Does a different way of writing mean creativity?
Be careful here!
Both A and B are common ways to write this in Python.
Simply writing something differently doesn't automatically make it a copyrighted work.
The same goes for renaming variables or condensing instructions.
But once a program gets more complex, there can be many choices about which instructions to use, how to combine them, and in what order to write them.
That's where the creator's individuality can show up in the expression.
4. What Do Courts Look at to Judge Creativity in a Program?
In Japanese court decisions, these points are mainly considered when judging creativity in a program:
- How the instructions to the computer were specifically expressed
- How those instructions were combined
- In what order they were written
- Whether, among other possible ways of expressing it, the code shows individuality beyond the commonplace
Let's compare with writing.
Take the story "a hero goes on a journey and finds treasure."
Even with the same idea, each author would write the characters, dialogue, text, and scenes differently.
Copyright protects specific creative expression, not the mere idea of a story.
Programs work on a similar basic principle.
What matters isn't the function itself, such as "search for events," but the specific program expression used to achieve it.
That said, programs also come with technical constraints and standard ways of writing.
So we need to separate ordinary instructions needed to make a function work from creative, specific expression.
So what did actual courts recognize as creative?
Let's look at real cases!
5. [Case 1] About 100 Lines of Code That Switch Colors in a Game Were Found Creative!
Tokyo District Court, decision of November 26, 2014
Heisei 26 (Wa) No. 7280, a case seeking disclosure of sender information
The first case involves a console game program.
A developer had created a patch, a correction program, to improve problems and other aspects of an existing game.
One part of it switched the colors of game characters depending on certain conditions.
For example, it reads information such as a character's affiliation and level, checks conditions, and changes the color when needed.
The part that did this was about 100 lines of code written in assembly language.
Assembly language is a relatively low-level programming language that sits close to the computer's machine language.
Where was the creativity?
The court didn't focus on the function itself, "the color changes."
Instead, it looked at parts like these.
① The choice of instructions for checking a condition
The decision examines a part that combines the instructions AND and BNE to check a certain value.
It noted that a different combination, CMP and BNE, could also be considered for the same purpose.
Put simply, there's more than one way to choose instructions even when checking the same condition.
② The order of processing when a condition is met or not met
Do you write the processing for when the condition isn't met first, or the processing for when it is met first?
Different ways of writing it that produce the same result were possible.
③ The timing for moving data
There were also other choices for the order and timing of moving information around inside the computer.
④ Whether to group common processing together
When the same processing is needed in several places, you can write the shared part once, or write it separately each time.
This is also a different way of expressing the same result.
What did the court decide?
The court found that there was a reasonable range of choices in selecting, combining, and ordering the instructions, and that the developer had put thought into writing the code within that range.
It then recognized the color-switching program, about 100 lines long, as a copyrightable work, finding it showed the creator's individuality beyond the commonplace.
In addition, the corresponding part of the program uploaded to the internet matched this program completely at the object code level.
The court judged that infringement of the right of reproduction and the right to transmit to the public was clear, and ordered disclosure of the uploader's information.
In other words, the creativity was recognized not in the idea of changing colors, but in the specific choice and combination of instructions and the order they were written in!
That makes it a little easier to picture, doesn't it?
This decision addressed things like whether part of the patch was a copyrighted work. It isn't a case holding that anyone may freely modify or distribute the program of an existing game.
Official court decision (PDF, in Japanese)
6. [Case 2] Even a Combination of Ordinary Instructions Was Found Creative!
Osaka District Court, decision of January 21, 2021
Heisei 30 (Wa) No. 5948, a damages claim
Next is a dispute over the copyright in software that automatically buys boat race betting tickets.
The software could get information from the internet, buy tickets based on set conditions, and display the results.
It was developed using a programming language called Microsoft Visual Basic.
Where was the creativity?
What's interesting here is that the court acknowledged that, line by line, the code mostly used standard syntax and commonplace instructions, with no original functions.
Even so, the court affirmed creativity in the program.
Specifically, it valued parts like these.
① Original code for displaying the screen
To show the needed numbers and images clearly and speed up processing, the developers created their own methods.
A method is a piece of processing that bundles a certain job so it can be run together.
The court valued the specific way the instructions were combined, since there were multiple ways to get the same screen display.
② Structures for organizing data
To save settings and manage information during processing, the program combined several data structures.
A data structure is a way of organizing information so a program can handle it.
The question wasn't just the function of "saving data," but what was grouped together and in what structure it was written.
③ Code for getting information from a website
There are multiple ways to pull the needed information out of HTML.
This program was recognized as using its own way of writing, designed with future fixes and maintenance in mind.
④ Combinations of instructions for automated operation
This is processing that automatically sends the needed information to a website where a person would normally log in and make purchases.
The court also valued that the program used several methods as appropriate and built that whole series of actions out of specific instructions.
What did the court decide?
The court decided that these specific pieces of source code showed creativity in expression, and that the program as a whole, combining them, was also creative.
It found that the defendants' program had copied the work and ordered the defendants to pay 14 million yen to each of the two plaintiffs.
What we can learn is that even when each instruction is ordinary, creativity may be recognized depending on how they're specifically combined and structured.
That said, a complicated structure doesn't automatically become a copyrighted work.
What matters is whether the creator's individuality appears in the specific expression.
Official court decision (PDF, in Japanese)
7. [Comparison] Over 10,000 Pages of Code, but Creativity Wasn't Proven Enough!
Osaka District Court, decision of May 21, 2019
Heisei 28 (Wa) No. 11067, a claim for an injunction against copyright infringement
Now let's look at a contrasting case.
This was a copyright lawsuit over an order management system for restaurants.
The system included many functions, such as a cash register, a kitchen monitor, order management, a server, and a database.
The program the plaintiff wrote was reportedly more than 10,000 pages when printed.
That's a huge amount!
It was also considered to have new functions compared with typical restaurant ordering systems at the time.
So why wasn't creativity recognized?
The court did mention that part of the plaintiff's program might have creativity.
But the plaintiff hadn't sufficiently argued and proven exactly which combination of instructions offered a range of choices, or which description showed the plaintiff's own individuality.
Saying "I developed a complex system with new functions" isn't enough to prove creativity in the specific program expression.
The court dismissed the plaintiff's claims, citing among other reasons that the program's status as a copyrighted work hadn't been sufficiently proven.
This isn't a ruling that the program absolutely had no creativity.
It means that if you assert your rights in court, you need to show which specific expression should be protected.
Official court decision (PDF, in Japanese)
8. What Do the Three Cases Tell Us When We Compare Them?
Let's sort out the cases so far.
| Case | Court's judgment | Key point |
|---|---|---|
| 2014: game patch | Creativity found | Individuality in the combination of instructions and the order of expression in about 100 lines |
| 2021: automatic ticket-buying software | Creativity found | Even with ordinary instructions, individuality in the specific combination and structure |
| 2019: restaurant ordering system | Copyrighted-work status not sufficiently proven | New functions and sheer volume of code weren't enough |
Comparing them, things get a little clearer, right?
The length of the code, the time spent developing it, and how new the functions are don't decide creativity under copyright law.
What matters is what range of choices existed in the program's specific expression, and where the creator's individuality shows.
And in court, whether you can show that concretely matters, too.
9. Are Programming Languages and Algorithms Protected by Copyright?
Article 10, paragraph 1, item 9 of Japan's Copyright Act lists "works of programming" as a type of work.
But paragraph 3 of the same article provides that copyright protection for programs doesn't extend to the following three things.
| Legal term | In plain language |
|---|---|
| Programming language | The languages themselves used to express programs, such as Python or JavaScript |
| Rules | Special agreements on how a programming language is used |
| Algorithms | The method of solving a problem by combining instructions to the computer |
For example, writing a conditional branch with Python's if isn't something only one person can monopolize.
Likewise, the processing method of "sort events by date" can't be monopolized through program copyright.
That said, technical ideas such as algorithms may come up under other systems, like patents, under certain conditions.
Here too, what matters is separating ideas and rules themselves from specific creative expression.
10. What Are Source Code and Object Code?
When you look into program copyright, you also come across the terms "source code" and "object code."
Let's sort those out simply, too.
Source code
Code that people write using a programming language.
The Python addition we saw first is source code.
Object code
Code that has been converted, using a compiler or similar tool, into a form a computer can run.
Many of these forms aren't meant for humans to read directly.
Just because a creative program has been converted from source code into another form doesn't mean its copyright protection automatically disappears.
By the way, a compiler is software that converts a program into another form.
An OS is software that supports the basic operation of a computer.
Software like these can also be protected if the specific program expression has creativity.
11. Is It True That Databases Can Have Copyright, Too?
Take a database that collects lots of information on AI hackathon events.
Event names, dates, locations, participation fees.
Facts like these generally aren't copyrighted works on their own.
But creativity may be recognized in how the information was selected and systematically organized.
Article 12-2 of the Copyright Act protects databases whose selection of information or systematic construction is creative.
Meanwhile, the compilation works in Article 12 cover the creative selection or arrangement of materials in compilations other than databases.
However, simply gathering a large amount of data doesn't mean copyright is recognized.
If you just arranged ordinary items in an ordinary way, creativity might not be recognized.
And even where a database is protected, that doesn't mean every individual fact in it can be monopolized.
Also, when you use someone else's database, it's worth remembering that not only copyright but also terms of use and the Unfair Competition Prevention Act may come into play.
12. Who Owns the Copyright in Code Written by AI?
At AI hackathons, you might have an AI such as Claude Code or Codex write code for you.
That raises a new question.
"Does AI-generated code have copyright?"
"Do I become the author because I gave the instructions?"
In "General Understanding on AI and Copyright in Japan," published by the Agency for Cultural Affairs in March 2024, human creative contribution is treated as an important factor in deciding whether AI-generated material is a copyrighted work.
Say you give a short instruction like:
"Make an app that shows a list of events."
And the AI generates all the code automatically.
That instruction alone doesn't necessarily mean a human contributed to the creative expression of the code.
On the other hand, if a person comes up with specific creative expression and instructs the AI accordingly, or makes creative edits to the generated code, it may be recognized as a copyrighted work.
But a long prompt, or generating many times, doesn't make you an author by itself.
It depends on what creative expression the person was actually involved in, judged case by case.
And here's one more important thing.
Whether AI-generated code has copyright is a separate question from whether that code infringes someone else's copyright.
Having an AI create something for you doesn't mean you can use it however you like.
Agency for Cultural Affairs: AI and Copyright (in Japanese)
13. An App's Copyright Isn't Only About the Code!
So far we've looked at creativity in programs, but an AI app isn't made of code alone.
For example:
| Part of the app | Relationship to copyright |
|---|---|
| Program code | May be protected if the specific writing has creativity |
| UI illustrations and images | May be protected if they're creative expression |
| Descriptions and taglines | Judged by the creativity of the writing and similar factors |
| Intro videos | Rights may apply separately to the footage, music, and more |
| Database | May be protected if the selection or systematic construction of information is creative |
| App ideas and functions | In principle, not protected by copyright themselves |
So "Who owns the copyright in this app?" can't always be answered in one word.
The person who wrote the code, the person who made the design, and the person who produced the video might all be different people.
This also relates to team development at hackathons.
We cover ownership and contracts in joint development in another article, so take a look if you're curious.
14. Five Things Beginners Should Remember
After reading this far, you can see program copyright goes deeper than you might expect.
But you don't need to judge creativity like a judge from day one.
I think remembering these five things is enough to start.
- Programs can be copyrighted works. But not all code is protected.
- A function and the specific expression in code are different. Building an app with the same function doesn't immediately mean copyright infringement.
- The choice, combination, and order of instructions matter. That's where the creator's individuality can show.
- Code length and development time alone don't decide it. Real court cases examine the creativity of specific expression.
- When you use AI-generated code or someone else's code, check the rights. Even code published on GitHub comes with licenses and terms of use to watch for.
Takeaway: Even Mechanical-Looking Code Can Have Creativity!
At first, program copyright is hard to picture.
With writing or photos, you get the feeling that "this person expressed this."
But code is a set of instructions to a computer.
Even if someone says it has creativity, it can be hard to connect with.
After looking at real court cases, though, I started seeing things a little differently.
In the 2014 game patch case, creativity was recognized in the combination and order of instructions in about 100 lines of code.
In the 2021 automatic ticket-buying software case, the court found the creator's individuality in the specific combination and structure, even though each instruction was ordinary.
On the other hand, in the 2019 restaurant system case, the court decided that even with a huge amount of code and complex functions, the creativity hadn't been sufficiently proven.
So program copyright is about not "what it achieves," but "how it was specifically expressed".
An Honest Reflection After Researching This
After researching all this and reading court cases where copyright was actually recognized, I feel I understand a bit better how the idea of creativity in a program works.
But to be honest, my mechanical impression of code didn't change much, right to the end.
With writing or images, it's relatively easy to imagine the author's emotions, sensibility, and imagination being expressed.
With programs, the choice and order of instructions, the combination of processes, and efficiency tricks all feel like technical expression for building a system.
Of course, I understand that each developer puts effort into their work, and I can accept the explanation that individuality shows up there.
But as someone who isn't an IT expert, it's still a little hard to feel that as "creation" in the same way as a novel or an illustration.
Still, there was something I did learn this time.
Creativity in copyright law doesn't necessarily mean expressing emotions or producing artistic beauty.
Among many available choices, the creator selects and combines specific expressions, and individuality can show there.
And in a program, that individuality can show up in how the code is written.
Code didn't suddenly start looking like a work of art to me.
But I could finally say, "Oh, so that's how they think about it," about program creativity, which I couldn't imagine at all before.
Something that looks mechanical can still be recognized as creative in the eyes of the law.
For me this time, that was the biggest discovery.
References
Law
Court decisions
- Tokyo District Court, November 26, 2014 (Heisei 26 (Wa) No. 7280, PDF, in Japanese)
- Osaka District Court, January 21, 2021 (Heisei 30 (Wa) No. 5948, PDF, in Japanese)
- Osaka District Court, May 21, 2019 (Heisei 28 (Wa) No. 11067, PDF, in Japanese)
AI and copyright
Information checked: October 31, 2026
This article is a general explanation based on Japanese copyright law and is not individualized legal advice. The short Python code shown here was written as an explanatory example and is not code that was actually examined in any court case. The descriptions of the court cases are beginner-friendly summaries of each decision's reasoning. Whether a particular program is a copyrighted work, or whether it has been infringed, depends on the specific expression and the facts involved.