How to embed an iframe in Medium
Medium does not support embed code, so you cannot paste an iframe. Paste a link on a new line and press Enter. The link becomes an embed when Embed.ly supports the service, or a preview card when it does not.
2 min read · Updated
- Raw iframe code
- No
- Embeds from a link
- Embed.ly providers only
- Own scripts
- No
Steps
Step 1: Go to a new line in your story
Put the cursor on an empty line while you edit the story.
Step 2: Paste the URL and press Enter
The link must start with https:// or http://. Medium changes it into an embed or a preview card.
Step 3: Publish the story
The embed becomes interactive after you publish the story.
Check your URL first
If the page blocks framing, no embed on another site can show it.
Limits
Medium does not support embed code. It takes only the URL.
Embeds work only for services that Embed.ly supports. Other links become a preview card.
Medium does not let you insert and run your own scripts.
Troubleshooting
- The embed does not respond in the editor
Publish the story. Medium makes the embed interactive only after you publish it.
Blank iframe, no error- Signed out in the embed
The browser blocks the cookies of the embedded site. Open the content in a new tab to sign in.
Login doesn't stick
- Medium Help Center: Using embeds · help.medium.com