Embed PDF in HTML
The simplest way to embed your PDF documents in HTML code.
Embed a PDF without writing the code
Tiiny Host hosts your PDF and generates the iframe code for it. You paste that code into a page on your website, where the document appears inline with its own viewer controls. Replacing the PDF later updates every page it's embedded on.
Embed Your PDFs in HTML
In 3 Simple Steps

1. Select your PDF file
Navigate to your PDF files on your device.

2. Upload your PDF file to Tiiny Host
Hit the 'Upload PDF File' button and select your file.

3. Instantly embed your PDF in HTML
After uploading, your embed code will be generated. Insert this into your HTML code.
What the embed code gives you
🔗 Instant Embedding
The embed code is ready as soon as the PDF is published.
🚧 Code provided
The iframe snippet is waiting in the project menu, so there's nothing to write by hand.
🔐 Secure File Handling
Password protection on Solo applies inside the embed too.
💻 Access from Anywhere
Embedded PDFs are managed from your dashboard, on whichever computer you're using.
🤝 Shareable Links
The embedded PDF also has a normal link for emails and social posts.
🖥 Full Customization Options
Paid plans add display modes, including presentation and a minimal view with no toolbar.
Tiiny Host vs embedding a PDF yourself
Writing an iframe or object tag isn't hard, but the PDF still needs a home, and browsers differ in how they show an embedded file. Tiiny Host hosts the file and generates the embed code, and readers get the same viewer in every browser.
Embedding is included on the free plan
Every plan comes with embed code, the free one included. Free PDFs are limited to 0.5 MB, which suits a price list or a short handout.
- ✓ 1 embedded PDF
- ✓ PDFs up to 0.5 MB
- ✓ 5,000 visits and 5 GB bandwidth a month
- ✓ Embed code plus a shareable link
- – Tiiny Host banner shown in the viewer
- Tiny $5 · no banner, 25 MB PDFs, QR codes, analytics
- Solo $13 · 5 PDFs, password protection, download blocking, custom domain, API
- Pro $31 · 15 PDFs, email capture, team members
- Pro Max $74 · unlimited PDFs, 2 TB of storage
Embeddable PDF size by plan
Per-file upload limit by planPrice lists and handouts are usually small enough for any plan. If the page you embed on gets heavy traffic, check the monthly visit allowance as well as the file size.
Embed PDFs from your own code
An API key lets a script upload a PDF and read the live URL from the response, ready to drop into an iframe src. Sending a PUT to the same domain swaps the file while every embed stays in place.
curl -X POST https://ext.tiiny.host/v1/upload \
-H "x-api-key: $TIINY_API_KEY" \
-F "files=@catalog.pdf" \
-F "domain=product-catalog.tiiny.site"
# → https://product-catalog.tiiny.site
# PUT the same domain to replace it
PDFs people embed on their sites
Conference Presentations
Slides from a talk, embedded on the event page so attendees can flick through them afterwards.
Product Catalogs
A catalogue embedded on a shop page, which you can refresh each season without touching the site's code.
Educational Resources
Course syllabi and reading lists embedded in a school website or LMS.
Share PDFs Online: Embed and Link Techniques
When to embed a PDF on a page and when a link is the better choice.
Styling Embedded PDFs in HTML
How to connect a stylesheet to an HTML page, useful when you're styling the page around an embed.