Embed PDF in HTML

The simplest way to embed your PDF documents in HTML code.

⭐️ 2,000,000+ happy users
Embed code on every plan · Trusted by teams at Salesforce, Airbnb, JLL, Nestlé

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 a PDF without writing the code

Embed Your PDFs in HTML

In 3 Simple Steps

1. Select your PDF file

1. Select your PDF file

Navigate to your PDF files on your device.

2. Upload your PDF file to Tiiny Host

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

3. Instantly embed your PDF in HTML

After uploading, your embed code will be generated. Insert this into your HTML code.

Features

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.

Compared

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.

⚡ Tiiny Host
Other PDF tools
Ready-made embed code
The iframe snippet is in your dashboard as soon as the PDF is live.
✓ Yes
Write it yourself
Update in one place
A replacement PDF appears on every page that embeds it.
✓ Yes
Re-embed
Works with most site builders
WordPress and Webflow accept the iframe, as does a hand-coded page.
✓ Yes
Varies
Link and QR code included
The same PDF can be shared by link, and on Tiny it gets a QR code too.
✓ Yes
Varies
Password inside the embed
On Solo, visitors see a password prompt within the frame.
✓ Yes
Rarely
Download blocking
Solo can hide the download and print buttons in the embedded viewer.
✓ Yes
Rarely
View analytics
Tiny and higher plans count how many people opened the document.
✓ Yes
Rarely
Easier PDF embedding than others AdobePDFtoHTML.netWondershare
Pricing

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.

Free
$0/mo, forever
  • ✓ 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
Upgrade when you need more
from $5/mo, billed yearly
  • 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
See all plans → ⭐️ 7-day money-back guarantee

Embeddable PDF size by plan

Per-file upload limit by plan
Free
0.5 MB
PDFs · 3 MB other files
Tiny · $5
25 MB
per project
Solo · $13
75 MB
per project
Pro · $31
10 GB
account limit
Pro Max · $74
2 TB
account limit

Price 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.

Agent friendly

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.

REST APISimple upload endpoint. Build automations and scheduled publishing.
MCP serverClaude Code in one command. Cursor, VS Code, Windsurf, Zed, Codex, v0 with a few lines of config.
Claude connectorPublish reports and documents straight from Claude Web, Desktop and Code.
SkillInstall once and your agent can turn any file into a shareable link.
Read the API docs → API access on Solo and above
upload.sh
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
Examples

PDFs people embed on their sites

Conference Presentations

Conference Presentations

Slides from a talk, embedded on the event page so attendees can flick through them afterwards.

Product Catalogs

Product Catalogs

A catalogue embedded on a shop page, which you can refresh each season without touching the site's code.

Educational Resources

Educational Resources

Course syllabi and reading lists embedded in a school website or LMS.

Resources

Further reading on PDFs and HTML

Share PDFs Online: Embed and Link Techniques

When to embed a PDF on a page and when a link is the better choice.

Using PDF to HTML Converters

An overview of tools that turn PDF content into HTML you can edit.

Styling Embedded PDFs in HTML

How to connect a stylesheet to an HTML page, useful when you're styling the page around an embed.

Frequently Asked Questions

How can I embed a PDF in my HTML code?

Upload the PDF to Tiiny Host, then copy the iframe code from the project menu. Pasting it into your HTML puts the PDF on the page.

Can I embed a PDF directly into my website code?

Yes. The code is a standard iframe, so it goes anywhere your site accepts HTML, including a WordPress custom HTML block.

Are my PDF files safe when I upload them?

Files are served over HTTPS. By default anyone with the link can open them, so use password protection on Solo if the document is confidential.

Is embedding a PDF free?

It is. Embed code is included on the free plan for PDFs up to 0.5 MB, and Tiny ($5 a month) raises that to 25 MB.

Where do I find the embed code?

In your dashboard, open the three-dot menu beside the project and choose Embed this link. The iframe code is shown there, ready to copy.

Does the embedded PDF update when I change the file?

It does. Replacing the PDF in the project updates every embed, because the embed code points to the same address.

Can I password protect an embedded PDF?

On Solo and higher plans. The password screen appears inside the frame, and the PDF loads once the correct password is entered.

Embed your PDF on your website