← All text tools

Embed PDF in a web page

Generate the HTML code to show a PDF on your website with an iframe, object or embed tag or a plain link, with size, page and toolbar options.

  • Free
  • No sign-up
  • Works on any device

About Embed PDF in a web page

Putting a PDF on a web page takes a few lines of HTML, but the details matter: the right tag, a height that makes sense, a fallback for browsers that cannot display it and an accessible title. Enter the address of your PDF and this tool writes the code for an iframe, an object tag, an embed tag or a simple link. You can open the file at a given page, ask the viewer to hide its toolbar and add a download link inside the tag. The page only writes code and does not contact your address.

How to use Embed PDF in a web page

  1. Paste the web address where your PDF is hosted.
  2. Choose the embed method and set the width, height and options.
  3. Copy the HTML and paste it into your page.

Why use this tool?

Also known as

Frequently asked questions

Why does my PDF show only a download button on a phone?

Many mobile browsers, especially on iPhone, do not display PDFs inside a page and show just the first page or a link. A plain link, or the fallback link in the code, works on every phone.

Do the toolbar and page options work everywhere?

They are open parameters that Chrome, Edge and Acrobat style viewers honour. Other viewers may ignore them and still show the PDF.

Does my PDF need to be uploaded here?

No. You host the file yourself, on your own site or storage, and this tool only needs its address to write the code.

Is Embed PDF in a web page free?

Yes. Embed PDF in a web page on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools