October 14, 2026
The short answer: copying the idea of a website design is generally legal. Copying its expression (the text, images, illustrations, code, logo and distinctive branding) generally is not. And making something a visitor could mistake for the original is risky even if every asset is your own.
Everything interesting sits between those statements. Click through the spectrum to see where common practices usually fall.
The spectrum, from inspiration to infringement
What the law actually protects on a website
Three kinds of protection do most of the work. Each covers something different, which is why “is it legal?” rarely has a one-word answer.
| Protection | Covers | Does not cover |
|---|---|---|
| Copyright | Original creative expression: copy, photos, illustrations, video, icons, and the source code itself | Ideas, layouts in general, functionality, facts, short phrases, common patterns |
| Trademark | Names, logos, slogans and, in some cases, distinctive overall appearance (“trade dress”) that identifies a business | Generic design choices that do not point to one company |
| Design rights & unfair competition | In the EU and UK, the appearance of a product, which can extend to interfaces. Passing off (UK) and unfair competition protect against confusing imitation. | Designs that are not new or distinctive, or imitation that confuses no one |
| Licences & terms | Fonts, templates, stock media and code libraries come with their own terms, which apply whatever the above says | Anything you created yourself |
Notice what is missing from the “covers” column: the colour blue, a two-column grid, a sticky header, generous whitespace. You can use all of those, and you will find them on most well-designed sites.
A decision diagram before you publish
The grey areas people get wrong
Fonts
This is the most common accidental infringement in web design. You inspect a
beautiful site, find the font name, and see the .woff2 files in the
Network tab. Those files are licensed to that site. Using them on yours, even
self-hosted, is usually a breach of the foundry’s licence. Either buy a licence
for your own site or find a comparable free alternative.
(How to find what font a website uses
covers identifying it properly.)
Code
The technique is free. The text of the code is not. Learning how a scroll animation works by reading it, then writing your own version, is normal. Pasting their minified bundle into your project is not. Open-source libraries are a different case: GSAP, Three.js and Lenis are all free to use under their own licences, so using the same libraries is fine.
Near-replicas
Swapping the logo and copy on an otherwise identical site does not make it original. If the overall look is distinctive and you reproduce it closely, you can run into trade dress or passing-off claims even though every asset is yours. A useful test: would someone who knows the original think your site belongs to the same company?
AI clones
Tools like Claude Code have made a near-perfect clone a one-prompt job, which is why this question is being searched more than ever. The law has not changed. A clone is judged on what it contains and how it is used, not on how it was made. The safe pattern is the one in how to clone a website with Claude Code: rebuild to learn, then replace every asset and word before anything ships.
If someone copied your website
- Document it. Take dated screenshots of both sites and save copies of the pages. Note exactly what was copied: text, images, code, the whole look.
- Check what is actually yours. A shared template or similar layout is not infringement. Copied text, photos or code usually is.
- Ask first. A short, factual message to the site owner resolves many cases, especially when the copier used a template carelessly.
- Go to the host. In the US, a DMCA takedown notice to the hosting provider is the standard route for copied content. Most hosts elsewhere have a copyright complaint form.
- Escalate if it matters. Brand impersonation, lost sales or fraud are lawyer territory.
The practical rule
Take the lesson, not the work. Study how a great site builds its rhythm, its type, its motion and its moments of surprise. Then rebuild that craft with your own brand, words, imagery and code. That is how most designers have always learned, and it is the approach that keeps you clear of nearly every problem on this page.
FAQ
Is it illegal to copy a website layout?
Generally no. Layout ideas and common structures (a hero, a three-column grid, a pricing table) are not protected by copyright on their own. Risk rises when the overall look is copied so closely that visitors could confuse the two sites, which trademark and unfair-competition law can cover.
Is it legal to copy HTML and CSS from a website?
Source code is protected by copyright, so copying it verbatim into a published site is risky unless its licence allows it. Reading it to understand a technique, then writing your own, is how developers learn and is generally fine.
Is it legal to clone a website with AI?
The tool does not matter. An AI-made clone is judged the same way as a hand-made one. A private rebuild for learning is the normal case. Publishing someone else’s content, branding or code is not.
Can I use the same font as another website?
Only with your own licence. Free fonts such as Google Fonts can be used under their licence. Commercial fonts must be licensed for your site, even if you can download the files from theirs.
What can I do if someone copied my website?
Document it with dated screenshots, then contact the host or the site owner. In the US, a DMCA takedown notice to the host is the usual route for copied text, images or code. Elsewhere, hosts usually have their own copyright complaint process. For serious cases, speak to a lawyer.
Is this legal advice?
No. This is general information about common practice, mostly from a US and UK/EU perspective. Laws differ by country and facts matter. For a specific situation, ask a lawyer where you are.