Belum ada versi bahasa Indonesia, jadi tampil dalam bahasa Inggris.

How to put an HTML file on your Squarespace site

Quick answer

Squarespace has no way to make an .html file a page of your site. Paste the file's code into a code block set to HTML: it holds up to 400 KB, and JavaScript or an iframe needs the Core, Plus, or Advanced plan. The link editor uploads the file up to 20 MB as a link. For a whole page with scripts and forms, publish it at its own address and link a button to it.

Get a link for my HTML file

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 Squarespace. Squarespace builds pages from its own blocks, so a file doesn't become a page the way it does on a host that serves files. What Squarespace offers is a code block on one of your pages, a file link, and buttons. This guide gives each, with its limits, from Squarespace's Help Center, read on November 20, 2026.

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 Squarespace site points to.

What Squarespace allows

What you wantSquarespace's toolWhat Squarespace says
Show the HTML on a pageCode block, Mode HTML"Code blocks have a 400 KB limit, or about 300,000 characters"
Run its JavaScriptThe same code block"To add JavaScript or an iframe to a code block, your site needs to be on the Core, Plus, or Advanced plan"
Upload the .html fileThe link editor, File"Each file needs to be 20 MB or smaller." Visitors "click the link to open or download the file"
Send visitors to the pageA button or a text linkThe page opens at its own address

Paste the code into a code block

This puts the page's code on one of your Squarespace pages.

  1. Edit a page or post.
  2. Hover over the section and click Add block or +, then click Code.
  3. Click the pencil icon on the block to open its editor.
  4. In the Mode menu, choose HTML, and paste the code.
  5. Leave Display Source off: switched on, it shows the code as text.
  6. Save, and publish the page.

Squarespace's rules for the code:

  • 400 KB. "Code blocks have a 400 KB limit, or about 300,000 characters." A page with pictures written into it as data can pass that.
  • Scripts take a plan. "To add JavaScript or an iframe to a code block, your site needs to be on the Core, Plus, or Advanced plan."
  • CSS and JavaScript go in tags. "To render CSS or JavaScript, select HTML in the Mode menu, then wrap CSS in tags and JavaScript in tags." Set to CSS or JavaScript, the block shows the code as text.
  • You may not see it while logged in. "As a security measure, your code sometimes doesn't appear while you're logged in, even when visitors can view it." Squarespace's fix: "click Preview in Safe Mode."
  • Ajax loading and index pages. "Custom code might not render if you added it to a page in an index page, or if Ajax loading is on."

A code block sits inside your page, under your site's header, so a whole page an AI made shows inside your Squarespace layout, not full screen. For the whole page, link it as below.

The link editor takes the .html file itself:

  1. Select text or a button and open its link editor.
  2. Select File from the drop-down menu.
  3. Click the upload icon and choose the file. "Each file needs to be 20 MB or smaller."

Squarespace says "When a visitor clicks a file link, the file opens in their browser", and "A visitor's own browser settings can also decide whether a file opens or downloads." Files beside the page, such as style.css or game.js, need their own upload and their own address, so ask the AI for one file with everything inside.

A page at its own address keeps its whole layout and runs its scripts on every Squarespace plan:

  1. Publish the page on a host and copy its https:// address.
  2. Add a Button block, or select a word, and open its link editor.
  3. Paste the address, and switch Open link in new tab on if you want it.

A Convika page refuses to be shown in a frame on another site, so link it this way rather than in an iframe.

Ways to put an HTML file on Squarespace, compared

WayWhere it showsScripts runPlan
Code block, Mode HTMLInside one Squarespace pageYes, on Core, Plus, or AdvancedJavaScript and iframes: Core, Plus, or Advanced
File linkThe file, opened or downloaded by the visitor's browserUp to the visitor's browserAny
A button to the pageThe page's own addressYes, if its host runs themAny

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.

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, a second button buys the Pro pass ($5 once for 30 days, no auto-renewal) and publishes the page without the Convika bar. 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.

Copy the page's address, such as yourpage.convika.page. In Squarespace, add a Button block, open its link editor, paste the address, and save.

Free includes 1 published page and 10,000 page views a month, and the dashboard shows how many people opened the page. A form on the page collects the entries in your dashboard. Is Squarespace's own plan worth it? Is Squarespace free? covers its trial and plans.

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⁠

Frequently asked questions

Can you upload an HTML file to Squarespace?

As a file link, yes: in the link editor, select File and upload it, up to 20 MB, and visitors' browsers open or download it. It doesn't become a page of your site. To show the page on a page, paste its code into a code block set to HTML; to keep it whole, publish it at its own address and link a button to it.

How do I add custom HTML to Squarespace?

Add a Code block: edit the page, click Add block or +, click Code, open it with the pencil icon, choose HTML in the Mode menu, and paste the code. A code block holds up to 400 KB. JavaScript and iframes need the Core, Plus, or Advanced plan.

Why isn't my HTML code showing on Squarespace?

Squarespace gives three causes. Code sometimes doesn't appear while you're logged in, so click Preview in Safe Mode. Code can fail on a page inside an index page or with Ajax loading on. And a block set to CSS or JavaScript, or with Display Source on, shows the code as text: set Mode to HTML.

Does Squarespace allow JavaScript?

In code blocks, on the Core, Plus, or Advanced plan: "To add JavaScript or an iframe to a code block, your site needs to be on the Core, Plus, or Advanced plan." Put the JavaScript inside <script></script> tags in a block set to HTML. A page at its own address, linked from a button, runs its scripts on any plan.

How do I add an HTML page to Squarespace without a code block?

Publish the page at its own https:// address, then add a Button block on your Squarespace page and paste the address in its link editor. The page opens with its whole layout, scripts, and forms, and Squarespace's plan doesn't limit it.

Sources

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

More ways to send your page

Share this article

Give your HTML page a link to put on Squarespace

Upload the file once and publish it, scripts and all, on any Squarespace plan. Point a button at it, and it opens full screen on phones and computers.

Get a link for my HTML file

Free plan: no credit card, 1 published page.