How to put an HTML file on your Wix site
Quick answer
Wix's help names no way to upload an .html file as a page of a site you build in the Wix editor. Its Embed HTML element shows pasted code in an iframe on a page, and Embed a site shows an https:// page in one, unless that page refuses to be framed. For a whole static site, Wix Headless takes a folder or zip with a top-level HTML file at wix.com/headless/drop, up to 20 MB in total, as a separate project.
Free plan: no credit card, 1 published page.
On this page
You have an .html file, perhaps a landing page, a calculator, or a quiz that ChatGPT or Claude made, and a site on Wix. Wix builds its pages in its own editor, so a file doesn't become a page the way it does on a host that serves files. What Wix offers is a frame on one of your pages that shows the code or another site's page, a separate kind of Wix site for uploaded files, and links. This guide gives each, with its limits, from Wix's own help.
The Wix help pages quoted here were read on November 14, 2026. We didn't test them on a Wix site, so a label on yours may differ. Wix has more than one editor (the Wix Editor, Wix Studio, and the Wix Harmony editor), and the menus differ between them; the steps below say which is which.
To check the page first, drop it into the upload box at the top of this page: it gives a preview link without an account. That preview runs no scripts. Click Keep this page — free, no card and sign up, and the page moves into your account, where its scripts run and you can publish it at a link your Wix site points to.
What Wix allows
| What you want | Wix's tool | What Wix says about it |
|---|---|---|
| Show the HTML code on a Wix page | Embed HTML (Embed code) | Your code appears in an iframe. “Only HTTPS codes and URLs are displayed”, and “There is no character limit” |
| Show a page from another address | Embed a site | Shows “an external site in a window on your page”. Some sites “won't appear in the embed after pasting their URL”, and “it is not possible to bypass this within Wix” |
| Add a script to every page, unseen | Custom Code in Settings | For tracking and verification snippets, “always invisible to your site visitors”. Needs a published site with a connected domain |
| Send visitors to the page | A button with a Web address link | Opens in a new window or the current one |
| Upload a whole static site | Wix Headless upload | Static HTML, CSS, JavaScript, and assets, “up to 20 MB total”, as a new headless project, not a page of your editor site |
Upload the .html file to the Media Manager | None | Wix's media file types (images, video, audio, documents, archives, and more) include no HTML |
A Wix Blog post can attach an .html file for readers to download: .html is on its list of file types. That's a file in a post, not a page.
Paste the code into Embed HTML
This puts the page's code in a box on one of your Wix pages.
- Wix Editor: click Add Elements, then Embed Code, then Popular Embeds, and choose Embed HTML. Click the element, click Enter Code, paste the code under Add your code here, and click Apply.
- Wix Studio: click Add Elements, then Embed & Social, then Embed Code. Click Enter Code, paste, and click Apply.
- Wix Harmony editor: click + Add, select Elements, hover over More Options, then click Embed. Drag Embed code onto the page, click the Settings icon, and paste into Enter HTML embed code.
Wix's rules for the code: it “must contain HTTPS and not HTTP”, so every image, script, and stylesheet the page loads needs an https:// address. In Wix Studio, the code runs “within a sandboxed iFrame”, and Wix lists what it turns back on: allow-scripts (“Re-enables custom JavaScript code”), allow-forms, allow-popups, allow-same-origin, and allow-pointer-lock. The Wix Editor and Harmony articles don't list their sandbox settings.
The box keeps the size you drag it to. Wix says code with fixed sizes, such as width="560", can be cut off, and to “replace the px values with percentage units and set them to 100%”. If the page has separate CSS or JavaScript files, Wix warns that “some elements may not function or look the same” unless they're referenced from the code.
Embed a page by its link
Embed a site shows a page that already lives at an https:// address. In the Wix Editor: Add Elements, Embed Code, Popular Embeds, Embed a site; then click Enter Website Address, type the address under What's the website address?, and click Apply. In Wix Studio it's Embed Site and Change Website Address; in the Harmony editor, Embed a site and its Link setting.
The other site decides whether this works. Wix: “Some sites have security policies that forbid them from being embedded on external platforms such as Wix.” A Convika page is one of them: Convika refuses to be shown in a frame on another site. For a Convika page, add a button instead. In the Wix Editor, click the button, click the Link icon, choose Web address, paste the page's address, choose a new window or the current one, and click Done.
How it looks on phones
Wix's iframes don't resize to the screen. Wix says: “The HTML and URL elements in our editor are iFrames. Therefore, the code or site you are embedding won't be responsive, even if it is originally.” On a phone, the box can be cut off or show scroll bars.
What Wix suggests for the Wix Editor's mobile view:
- Elements you add from the mobile editor are “mobile-only, meaning they're not displayed on the desktop version of your site.”
- If the desktop box doesn't fit, Wix recommends “hiding the desktop code, and adding a mobile friendly alternative to your mobile site”.
- “You cannot edit the code inside a desktop HTML element in the mobile editor.”
A page opened from a link has none of this: it fills the phone's screen at its own address.
When the HTML is a whole page
A page with its own header, sections, and buttons rarely fits in a box on another page. Three ways keep it whole:
- Wix Headless. Drop the site's folder or zip at
wix.com/headless/drop. Wix says the upload “releases your site so it goes live on a *.wix-site-host.com URL”, and that “This upload creates a new headless project.” What it takes: static files only (“Nothing runs on a server”), an HTML file at the top level (name itindex.htmlif there's more than one), up to 20 MB per file, 20 MB in total, and 5,000 files. It rejects some file types, “such as WebAssembly”. You can upload without an account, but “you do need a Wix account to keep your site”. Wix doesn't say on these pages what a headless project costs or how long a dropped site stays up before you sign in. - A link from your Wix site. Publish the page on a host, then link a button to it, as above.
- Your own domain. Connecting a domain to a Wix site takes a plan: “To connect a domain to your Wix site, you must upgrade your site with a plan.” Wix's help doesn't say whether you can point a subdomain of it at another host.
Ways to put an HTML file on Wix, compared
| Way | Where it shows | Scripts run | On a phone |
|---|---|---|---|
| Embed HTML | In a box on one Wix page | In Wix Studio, yes (allow-scripts); the other editors' articles don't say | A fixed-size box; Wix suggests a mobile-only version |
| Embed a site | In a box on one Wix page | The page's own, if its host allows framing; a Convika page doesn't | The same fixed box |
| Wix Headless upload | Its own *.wix-site-host.com address | Wix serves your .js files unchanged; nothing runs on a server | The page's own layout |
| A link to a page on a host | The page's own address | Yes, if the host runs them | The page's own layout |
Publish the page on Convika and link it from Wix in 4 steps
Convika serves one .html or .htm file up to 2 MB, or pasted code, at a lasting link, with its HTML, CSS, and JavaScript as they are. It runs no server code (no Node, Python, or database of your own).
1. Get a preview link
Drop the file into the upload box at the top of this page, or paste the code, and click Get my preview link. You get a link in seconds, without an account. It works for 3 minutes, with scripts and forms off, so it's for checking the layout. If the page's CSS and images sit in a folder next to it, drop that folder, or a zip of it, and the box puts them inside the file.
2. Keep the page
Click Keep this page — free, no card and sign up. The page moves into your account, and its scripts run in the dashboard preview.
3. Publish it
Click Publish page. Under Who can open this page?, choose Public and click Next. The first time, click Publish free: the page goes live with a small Convika bar at the bottom. Under it, Publish without the Convika bar opens an order for Pro monthly ($12 a month). On Free, the page is Public: anyone with the link can open it, and it may show up in search results and in Convika's gallery.
4. Link it from Wix
Copy the page's address, such as yourpage.convika.page. In the Wix Editor, add a button, click the Link icon, choose Web address, paste it, and click Done. Publish your Wix site.
Free includes 1 published page and 10,000 page views a month, and the dashboard shows how many people opened the page. Is Wix's own plan enough for your site? Is Wix free? covers its Free plan and domains.
Frequently asked questions
Can you upload an HTML file to Wix?
Not as a page of a site you build in the Wix editor: Wix's help names no way to do it, and its media file types don't include HTML. Paste the code into an Embed HTML element to show it in a box on a page, or link to the page on another host. For a whole static site, Wix Headless takes a folder or zip at wix.com/headless/drop, up to 20 MB in total, as a separate project.
How do I add my own HTML code to a Wix site?
Use Embed HTML. In the Wix Editor, click Add Elements, Embed Code, Popular Embeds, then Embed HTML; click Enter Code, paste, and click Apply. The code shows in an iframe, and it must load everything over HTTPS. For a script that runs on every page without showing, use Custom Code in your site's Settings, which needs a connected domain.
Why isn't my embedded site showing on Wix?
The site you embedded probably forbids framing. Wix says some sites “won't appear in the embed after pasting their URL”, and “it is not possible to bypass this within Wix.” An address that starts with http:// won't show either: Wix displays only HTTPS. A Convika page can't be embedded, so link to it with a button.
Is Wix's HTML embed responsive on mobile?
No. Wix says its HTML and URL elements are iframes, so the embedded code “won't be responsive, even if it is originally.” Resize the box, or hide the desktop element and add a mobile-only one in the mobile editor. A page you link to instead fits the phone's screen on its own.
Do I need a Wix premium plan to embed HTML?
Wix's articles on Embed HTML and Embed a site don't name a plan. Custom Code in Settings needs a published site with a connected domain, and connecting a domain takes a plan. A custom element needs “a premium plan, connect a domain, and have no ads on it.”
Can I host a static HTML site on Wix?
Yes, as a Wix Headless project. Drop the folder or zip at wix.com/headless/drop: it needs an HTML file at the top level, takes up to 20 MB in total and 5,000 files, and runs nothing on a server. The site goes live on a *.wix-site-host.com address, and you need a Wix account to keep it. It's a separate project, not a page of your existing Wix site.
Sources
- Wix Editor: Embedding a Site or a Widget (Wix Help Center) (no date on the page; read November 14, 2026)
- Studio Editor: Adding an HTML iFrame Element (Wix Help Center) (no date on the page; read November 14, 2026)
- Wix Harmony Editor: Embedding a Link or HTML Code (Wix Help Center) (no date on the page; read November 14, 2026)
- Wix Editor: HTML Code on Mobile and Wix Editor: Adding Embeds and Custom Elements to Your Mobile Site (Wix Help Center; no date on the pages; read November 14, 2026)
- Wix Editor: Embedding Custom Code on Your Site (Wix Help Center) (no date on the page; read November 14, 2026)
- Wix Editor: Adding a Link to a Button (Wix Help Center) (no date on the page; read November 14, 2026)
- Wix Media: Supported Media File Types and File Sizes and Wix Blog: Uploading Files in Wix Blog (Wix Help Center; no date on the pages; read November 14, 2026)
- Exporting or Embedding Your Wix Site Elsewhere (Wix Help Center) (no date on the page; read November 14, 2026)
- Wix Headless: Uploading a Static Site (Wix Help Center) (no date on the page; read November 14, 2026)
- Upload a Static Site (last updated November 12, 2026) and What You Can Upload (last updated November 11, 2026), Wix Developers; read November 14, 2026
Next step
How to password protect an HTML page or website
A JavaScript password script leaves the password in the page source. To password protect an HTML page or link, encrypt the file or let a server check it.
Related articles
- How to upload an HTML file to WordPressOn self-hosted WordPress, upload the file by SFTP or paste it into a Custom HTML block. WordPress.com strips scripts on Free. What works on each, from the docs.
- Is Wix free? The Free plan, your domain, and Wix's adsYes: Wix Free runs on a wixsite.com address with Wix ads. Connect your own domain on Light at $17 a month, billed yearly.
- How to share an HTML file as a link that opens on any phoneUpload the file to a host and send its link; email and Google Drive send the code. 8 hosts compared, from Netlify Drop to Convika, with 4 steps.
- Claude made my landing page. How do I get it live on my own domain?Host the HTML, add 2 DNS records, and wait for HTTPS. The steps on Convika Free, and what Vercel, Cloudflare Pages, GitHub Pages, and Netlify ask for.
- My HTML file opens but the images and styling are missing. Why?An .html file is only the page: its images, style.css, scripts, and fonts are other files. Our October 2026 tests show what goes missing, and how to fix each.
- Free HTML hosting compared (2026)Netlify Drop, Cloudflare, GitHub Pages, Vercel, Tiiny Host, and 6 more free HTML hosts compared: sign-up, link expiry, custom domain, forms, stats, and badge.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trial