Guide
Embedding a Canva Design in a Web Page Using the iframe ?embed Parameter
Learn how to embed a Canva design in any web page using the ?embed parameter in an iframe, with a concrete example, limits, and typical pitfalls to avoid.
Published by Tasadduq Burney
05 Jul 2026, 18:29 UTC
3 min97.8K views0

Useful answer
Canva lets you display any design that is set to "Anyone with the link can view" inside another website by adding ?embed to the share URL and loading it in an <iframe>. The embed shows the design in view‑only mode without the Canva editor UI.
How it works – a worked configuration
- Open the design in Canva and click Share.
- Set the sharing option to Anyone with the link can view and copy the link. It will look like:
https://www.canva.com/design/DAFabc123/view - Append
?embedto the URL:https://www.canva.com/design/DAFabc123/view?embed - Place the resulting URL inside an
<iframe>tag. A basic example:<iframe src="https://www.canva.com/design/DAFabc123/view?embed" width="800" height="600" allowfullscreen> </iframe> - Save the snippet in an HTML file and open it in a browser. The design should appear, and the
allowfullscreenattribute lets users click the fullscreen button if they need a larger view.
Limits and considerations
- View‑only: Embedded designs cannot be edited; the
?embedparameter strips the editor controls. - Sharing requirement: The design must be publicly viewable or shared via a link that grants view permission. If the link requires sign‑in, the iframe will redirect to a Canva login page and the content will not display.
- Sizing: If the iframe dimensions are smaller than the design’s aspect ratio, parts of the design may be clipped or scrollbars may appear. Use CSS to make the iframe responsive if needed.
- Interactive media: Videos or animations inside the design may not autoplay due to browser policies; they require user interaction to start.
- Content Security Policy (CSP): If the parent site enforces a
frame-ancestorsdirective that does not includecanva.com, the iframe will be blocked. Addcanva.comto the directive or use asandboxattribute with appropriate permissions.
Common mistakes
- Omitting
?embed– the full Canva editor UI loads inside the iframe, which is blocked byX-Frame-Optionsand results in a blank frame. - Forgetting
allowfullscreen– users cannot expand the design to fullscreen, making detailed viewing difficult on small screens. - Using a design link that requires authentication – the iframe shows a login prompt instead of the design.
- Ignoring the parent site’s CSP – the iframe is blocked silently; check the browser console for messages like "Refused to display ... because it violates the following Content Security Policy directive: frame-ancestors".
- Setting fixed width/height that mismatches the design’s aspect ratio – leads to unwanted scrollbars or cropped content; consider using
width:100%; height:0; padding-bottom:56.25%;with a wrapper for a 16:9 responsive embed.
Verification steps (no claim of testing)
- Create a test design in Canva.
- Set sharing to Anyone with the link can view and copy the link.
- Append
?embedand insert the URL into an<iframe>withallowfullscreenin a local HTML file. - Open the file in a browser and confirm the design renders, the fullscreen button works (if attribute present), and no edit controls appear.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.