By · Founder, Stacktree · Last updated
blog · 13 September 2026

Claude artifact too large to share.

It renders fine for you. The moment you try to share it publicly, Claude says this version can't be shared, and publishing a new version changes nothing. The help center does not mention a size limit, but there is one in practice, and the fix is either to shrink the page or to move it. Both are below.

Get started free

No card · 3 pages free · about a minute

Why is my Claude artifact too large to share?

Public sharing of a Claude artifact fails above a rendered size that third-party reports put at about 16 MiB, even though private viewing keeps working and Anthropic's help center lists no limit. The error reads "This version can't be shared publicly." Embedded images, inlined libraries and nested iframes are what push a page over. Shrink it, or host the full-size HTML on a private link instead.

What the failure looks like

The complaint arrived twice this month in two places. On X, someone noted their Claude artifact was "apparently too large to share" and that this was not an obvious limitation. On GitHub, a Claude Code user filed the fuller version: a self-contained design-system showcase of roughly 13 to 14 MB rendered HTML, with several iframes carrying inlined React, ReactDOM and Babel, a 2 MB bundled script, and a handful of small SVG data URIs. It viewed perfectly in private. Every attempt to share it publicly returned the same line: "This version can't be shared publicly. Publish a new version or change the shared version, then try again."

They did what the message says. Republished with confirmed content changes, several times. Published the identical content to a brand-new artifact. Same result. The issue was closed as stale with no response naming the cause.

What is documented, and what is not

Anthropic's help center article on publishing and sharing artifacts covers who can view a published artifact (anyone with the link, no sign-in), the Team and Enterprise rule (org-only, never public), and unpublishing (permanent; the same artifact cannot be published again). It does not mention a size limit, a reason publishing can fail, or what the error above means.

Third-party guides fill the gap with a number: a rendered size of about 16 MiB, with large embedded images as the most common cause. The GitHub reporter's 13 to 14 MB page sits just under that, which suggests the public-share check is stricter than the render limit, or that something else in the page (scripts assembled with new Function, which a tighter content security policy on public pages would refuse) is the trigger. Nobody outside Anthropic has confirmed which. The practical rule is the same either way: above about 10 MB, expect trouble.

Where the weight comes from

  • Images as data URIs. A base64 image is a third larger than the file it encodes, and Claude embeds them by default because the artifact has to be self-contained. Four screenshots can be 8 MB.
  • Inlined libraries. React, a charting library, Babel for JSX, each pasted into the page rather than loaded from a CDN. The GitHub case had these inside several iframes, so the same libraries were counted more than once.
  • Iframes with srcdoc. Each nested document carries its own full copy of everything it needs.
  • Generated data. A dashboard that embeds the dataset it charts, rather than a summary of it, grows with the data.

Five ways to get under the limit

  1. Measure it. Open the artifact's code view, copy it into a file, and look at the byte count. If it is over 10 MB, find the largest blocks first; they are almost always image data.
  2. Host the images elsewhere. Replace data URIs with URLs to images you host, and compress them on the way. This is usually the whole fix.
  3. Load libraries instead of inlining them. Ask Claude to reference React or the chart library from a CDN rather than pasting it in, and check the artifact still renders, since published artifacts run under a content security policy that allows some hosts and not others.
  4. Flatten the iframes. One document with sections, rather than a document of documents.
  5. Split it. A showcase can be three artifacts with links between them. Each publishes on its own.

Then publish a new version. The share check runs against the version you share, so re-sharing the old one after editing does nothing, which is what the error message is trying to say.

Or move the page

Sometimes the size is the point. A design system with every component rendered, a report with the charts baked in, a demo that has to work offline. Shrinking it would make it worse. In that case take the HTML out of Claude and host it somewhere with room.

On Stacktree a page can be 25 MB on the free plan, 250 MB on Solo and 1 GB on Firm. Copy the artifact's code and paste it, or from Claude Code let the agent publish it in one MCP call. What comes back is a private link that opens with no Claude account, which is more than the public artifact link offered anyway: add a passcode if the page is for one client, set an expiry if it is a review copy, put it on your own domain if it is going out under your name, and replace it in place when the next version is ready. The size check that failed you was Anthropic's public-share gate. There is no equivalent here, because the page was never going to be public.

Fix it now

You've read why the public link is a problem. Paste the artifact here and get a private one, no account, and a passcode if you want it.

FAQ

Frequent questions

Why does Claude say my artifact can't be shared publicly? +
The message is "This version can't be shared publicly. Publish a new version or change the shared version, then try again." It appears on artifacts that view fine privately, and republishing does not clear it. The public reports that isolate a cause all involve size: an artifact of roughly 13 to 14 MB rendered, with embedded libraries and data-URI images, fails every time while smaller versions publish.
What is the Claude artifact size limit? +
Anthropic's help center documents no size limit for publishing. Third-party guides and a GitHub issue against Claude Code both point at a rendered size of about 16 MiB as the ceiling for public sharing, and note that large embedded images are the most common way to reach it. Treat 16 MiB as the practical limit and anything above 10 MB as at risk.
How do I make a Claude artifact smaller? +
Find the weight first. Base64 images, an inlined React or chart library, and iframes with srcdoc content are the usual culprits. Move images to external URLs or compress them, load libraries from a CDN the artifact's security policy allows, drop the iframe-in-iframe pattern, and split a showcase into several artifacts. Then publish a new version rather than re-sharing the old one.
Can I share a large Claude artifact privately? +
Yes, by taking the HTML out of Claude. Copy the artifact's code and publish it on Stacktree: 25 MB per page on the free plan, 250 MB on Solo, 1 GB on Firm. The link is private by default and opens with no account, you can add a passcode or an expiry, and from Claude Code the publish is one MCP call rather than a copy and paste.
Does republishing fix the "can't be shared publicly" error? +
Not on its own. The reporter of the Claude Code issue republished several times with real content changes and also published the same content to a brand-new artifact, and public sharing failed each time while private viewing worked. Only reducing the rendered size, or hosting the page elsewhere, changes the outcome.
Is the error a size limit or a content restriction? +
Nobody outside Anthropic knows for certain, because the error does not say. The GitHub issue asked for the actual reason to be surfaced (size exceeded, or a stricter content security policy on public pages rejecting scripts built with new Function) and was closed as stale without an answer. Size is the reproducible trigger; scripts that need unsafe-eval are the other suspect.
Keep reading

Related guides

References

Sources and further reading

No size gate on a private link

Up to 1 GB per page, opened with no account, passcode and expiry optional, replaced in place when the next version lands.

Sign up free →