Pastery embed code generator
Paste any pastery URL — get a ready-to-paste embed for code and text snippets with syntax highlighting.
How to embed pastery pastes
Paste a Pastery link
Copy the URL of any Pastery paste and drop it into the field.
Get the embed code
The tool detects the content type and generates the right embed HTML.
Copy & paste
Click Copy code, then paste the HTML into your blog, docs, CMS, or any HTML editor.
Why use our pastery embed code generator
No manual setup
Paste any Pastery link and get a working embed for your snippet without writing iframe markup by hand.
Syntax-highlighted snippets
Show code and text pastes with their syntax highlighting so readers can scan and copy them easily.
Customizable preview card
Switch to Card mode to customize colors, fonts, and layout before copying.
Free, no signup
Generate up to 50 embeds per day. No login, no API key, no watermarks.
Pastery Embed with one click.
Powered by the Microlink Embed API — the same infrastructure handling embeds at scale.
Code and text pastes
Embed any Pastery paste — source code or plain text — directly into your page.
Preserved formatting
Whitespace, line breaks, and highlighting are kept so the snippet reads exactly as on Pastery.
Preview card fallback
A styled preview card with title and image when native embedding is restricted.
Code and text pastes
Embed any Pastery paste — source code or plain text — directly into your page.Preserved formatting
Whitespace, line breaks, and highlighting are kept so the snippet reads exactly as on Pastery.Preview card fallback
A styled preview card with title and image when native embedding is restricted.
FAQ
How do I embed a Pastery paste on my website?
Paste the Pastery URL into the tool and click Generate. Copy the resulting HTML and paste it wherever you want the snippet to appear.
Does the embed keep syntax highlighting?
Yes. Code and text pastes are shown with their syntax highlighting and original formatting preserved.
Can I embed plain text pastes too?
Yes. Both source code and plain text pastes work — the tool handles either kind of Pastery link.
What if the paste has expired or is private?
If the paste cannot be embedded, the tool falls back to a styled preview card built from the available metadata.
Is this free?
Yes — 50 requests per day, no login, no credit card.