Save a webpage as PDF with proper page breaks (or none at all)
To save a webpage as PDF with clean page breaks, open the print dialog (Ctrl + P on Windows, Cmd + P on Mac), choose Save as PDF, then use More settings to change Paper size, Margins and Scale until the preview stops cutting the parts you care about. Every change moves the break points. If you want no page breaks at all, you need either a tool that saves the page as one single long PDF page, or a one-line CSS trick that we tested and explain below.
The browser decides where one PDF page ends and the next begins, and it follows rules that the website can influence. Some things, like an image taller than the paper or a table row full of text, will be split unless someone tells the browser not to. Other problems, like an empty page at the end, have specific causes you can spot in the preview.
This guide covers the free settings first, then CSS for people who control the page, then extensions. If your problem is not page breaks but missing content (the PDF stops after one screen, images are blank boxes), read our guide on why Chrome's Save as PDF cuts off the page first.
Why page breaks land in the wrong place
A webpage is one long scroll. Paper is not. When you save as PDF, Chrome, Edge, Firefox and Safari lay the page out again for the paper size you picked, then slice the result into pages of that height. The web designer usually never thought about where those slices fall.
We ran a set of test pages through Chrome 152's print engine in October 2026 and checked the PDFs page by page. This is what Chrome does on its own, without any special CSS:
- An image that fits on a page is never split. If it does not fit in the space left, Chrome moves it to the next page and leaves a gap at the bottom of the previous one.
- An image taller than a whole page is sliced. A 1,500 pixel tall image on Letter paper appeared half on one page and half on the next.
- Table rows and boxes are split. A table row full of text started at the bottom of page 1 and finished at the top of page 2. Bordered boxes (cards, quotes, code panels) were split the same way.
- Table headers repeat. The header row of a long table was printed again at the top of every page, which is helpful.
- Lines of text are kept whole. Chrome broke between lines in every test, never through a line.
So when you see "content cut in half", it is usually a box, a table row or a very tall image. The fixes below either move the break points or tell the browser where it may not break.
Change paper size, margins and scale in the print dialog
This costs nothing and fixes most cases where one specific element is split.
- Press Ctrl + P (Windows, ChromeOS) or Cmd + P (Mac).
- Set Destination to Save as PDF.
- Click More settings.
- Change Paper size. A4 is taller than Letter and A3 is much larger. Pick a bigger size if the PDF is only for reading on screen.
- Change Margins: the options are Default, None, Minimum and Custom. Smaller margins give each page more room.
- Open Scale, choose Custom and type a value between 10 and 200. Try 90, then 80, and watch the preview on the left. A lower scale fits more content per page and shifts every break.
- Under Layout, try Landscape for wide tables. It gives more width but less height per page, so it can add breaks.
- Click Save.
Change one setting at a time. The preview is exact: the page breaks you see there are the ones in the PDF.
Chrome remembers margins, layout, scaling and paper size for next time. If a later PDF looks odd, check whether you left a custom scale from a previous job.
In Microsoft Edge the dialog is the same Chromium dialog with slightly different wording: the destination is chosen under Printer, and the scale field is called Scale (%). The steps above work identically.
Why Paper size or Layout is missing
If Paper size or Scale is not shown in Chrome's dialog, the page itself declares its paper size in its CSS (with a rule called @page). Chromium's source code hides those two options when you save as PDF a page whose pages all have a size set by the site. Layout disappears for the same reason when the site fixes the orientation.
In that case the site has decided the format. You can still use Margins if they are offered, or one of the other methods in this guide.
Remove blank pages from the PDF
Blank or almost empty pages have a few typical causes:
- A block as tall as the screen. Sites often size hero banners, intros or footers to exactly the window height (
100vhin CSS). In our test, a short paragraph followed by such a block produced a second page with nothing on it. - Space reserved for ads. Ad slots keep their size even when the ad itself is not printed, which can leave large white areas or whole empty pages.
- Web apps with an inner scrolling panel. Chats, webmail and dashboards often print a few lines followed by empty pages. That is a capture problem rather than a page break problem, and our Chrome Save as PDF guide explains it.
The quickest free fix: look at the preview, note the numbers of the blank pages, then open Pages, choose Custom and type only the pages you want, in the same format as the hint in the box: 1-5, 8, 11-13. Chrome saves just those.
One thing that does not create a blank page in Chrome: a forced page break on the very last element. We tested it and Chrome did not add an empty page at the end.
Avoid page breaks: save the webpage as one long PDF page
Sometimes you do not want pages at all. You want the whole webpage as one continuous sheet, the way it scrolls on screen, for archiving, design review or reading on a tablet.
The print dialogs in Chrome, Edge, Firefox and Safari have no "one long page" option. They always use a paper format. You have three ways around it.
A free trick with DevTools (Chrome and Edge)
You can tell the page to declare a paper size as tall as itself. Chrome's print engine then puts everything on a single page. We tested this exact line in Chrome 152: a page that normally prints on 7 Letter pages came out as 1 page, with all its text selectable.
- Open the page and scroll to the bottom so everything has loaded.
- Press Ctrl + Shift + J (Windows) or Cmd + Option + J (Mac) to open the DevTools Console.
- Paste this line and press Enter:
document.head.insertAdjacentHTML('beforeend','<style>@page{size:'+document.documentElement.scrollWidth+'px '+(document.documentElement.scrollHeight+50)+'px;margin:0}</style>') - Close DevTools, press Ctrl + P or Cmd + P, and check the preview.
The first time you paste into the Console, Chrome blocks it and asks you to type a confirmation phrase. That protection is explained in Google's post on self-XSS. Only paste code you understand; this line only adds a page size rule and disappears when you reload the page.
If the preview still shows two pages, the print version of the page is taller than the screen version: replace 50 with a bigger number, such as 2000. Do not go wild: in our tests, a page size of 200,000 pixels made Chrome hang.
Online converters with a "One long page" setting
Some online HTML to PDF services offer a single page format. iLovePDF HTML to PDF lists "One long page" among its page sizes, and Sejda HTML to PDF has the same option (checked in October 2026). They download the page from their own servers, so pages behind a login, a paywall or an intranet will not work, and you are sending the address to a third party. Our HTML to PDF guide covers these tools and their limits in detail.
Extensions that save one single page
Just-One-Page-PDF is the best known extension for this. As its name says, it is built to put a webpage on one PDF page, and its listing says you can "customize any page size as you want", select an area of the page, and keep the text "fully selectable, copyable, and searchable". On the Chrome Web Store, October 2026, it has 50,000 users and 4.4 stars from 283 ratings. If a single long page is what you need, it is a better fit than our own extension, which does not do this.
Screenshot extensions also produce one continuous image, but the result is a picture: no selectable text, no working links.
A single tall page is great on screen and awkward on paper. If you need to print it later, the printer will shrink it or split it again.
Add or force a page break where you want it
People search for "insert page break in PDF" when they want a chapter or section to start on a new page. In a browser you cannot click to add a break. The break has to come from CSS, which means you need to control the page or edit it temporarily.
If you own the page (your blog, an invoice template, a report generated by your app), add this rule to the stylesheet: h2 { break-before: page; }. Every section heading then starts a new page. In our test, two headings with this rule produced exactly three pages: the intro, section A and section B.
If you do not own the page, you can add the same rule temporarily with the DevTools Console, as in the one long page trick above, by replacing the style content with h2{break-before:page}.
CSS for developers: break-before, break-after, break-inside and @page
If you build pages that people save as PDF, a few lines of print CSS solve most complaints. These properties are Baseline: they have worked across browsers since January 2019, according to MDN.
| Goal | CSS | Notes |
|---|---|---|
| Never split a card, figure or table row | break-inside: avoid; |
MDN: "Avoids any break (page, column, or region) from being inserted within the principal box" |
| Start a section on a new page | break-before: page; |
"Forces a page break right before the principal box" |
| Keep a heading with the text after it | break-after: avoid; on the heading |
Chrome supports avoid here since Chrome 102 |
| Set paper size and margins | @page { size: A4; margin: 15mm; } |
Also letter, A3, landscape |
| Old syntax still in many sites | page-break-inside, page-break-before: always |
Treated as aliases of the new properties |
In our tests, break-inside: avoid on table rows and on bordered boxes stopped every split: each row and each box started and ended on the same page. Chrome's engineering team notes in its LayoutNG fragmentation write-up that flex and grid fragmentation shipped in Chrome 103, table fragmentation in Chrome 106 and the new printing path in Chrome 108, so these rules now work inside modern layouts too.
Two cautions. First, break-inside: avoid cannot help an element taller than a page: it will still be sliced. Second, avoid full-height blocks (height: 100vh) and overflow: hidden on the html or body element in print, because they cause blank pages and lost content.
To check your print CSS without wasting PDFs, open DevTools, go to the Rendering tab and set Emulate CSS media type to print. The page on screen then uses your print rules (Google documents it on its DevTools CSS emulation page). The full syntax is on MDN's pages for break-inside, break-before and @page.
Firefox and Safari
Firefox has its own print dialog with similar controls. Press Ctrl + P or Cmd + P, choose Save to PDF, open More settings, and you will find Paper size, Scale (with Fit to page width or a percentage) and Margins (Default, Minimum, None, Custom). On articles, Firefox offers Format: Simplified, which prints the Reader View version: fewer boxes and sidebars, so fewer awkward breaks. Firefox has no single long page option either.
Safari on Mac saves with File > Export as PDF, or with File > Print and then Save as PDF from the PDF menu at the bottom of the dialog. Safari applies the same CSS break rules as the other browsers.
For the full step by step on every browser and on phones, see our guide to saving a webpage as PDF.
What TruePage does (and does not do) with page breaks
A plain disclosure first: TruePage is made by Osabee, the publisher of this guide. We checked its source code for this article, so here is exactly what it does with pages.
TruePage asks Chrome's own PDF engine for the file, with a fixed page format: 14.5 by 18.8 inches (about 37 by 48 cm, roughly Letter proportions) with 0.4 inch margins. That large page keeps the desktop layout of the site. It also means fewer breaks: in our test, the page that took 7 Letter pages took 3 TruePage pages, and a 1,500 pixel image that Chrome sliced on Letter fitted whole on one page.
What it does not do:
- It does not save one long page. The PDF still has page breaks, only fewer and bigger pages. For a single page, use the DevTools trick or Just-One-Page-PDF above.
- It does not let you choose A4, Letter, margins or scale. If you need a PDF to print on standard paper, the print dialog is the right tool.
- It does not add page break rules. It keeps the site's own break rules from its normal stylesheets, but it switches off print-only stylesheets (to keep the screen layout), and any page break rules inside those go with them.
Where it does help: it collapses Google ad slots that would otherwise leave white space or whole blank pages, stops sticky headers from repeating at the top of every page, and expands inner scrolling panels in chat apps and webmail that otherwise produce pages of nothing. In Text only mode it removes images altogether, so no picture can be split across two pages.
Click the TruePage icon, pick Full page or Text only, then Save this page as PDF. The browser shows "TruePage started debugging this browser" while it works; that is the browser's safeguard for the API that makes a real PDF possible. It is free for 4 conversions, then a one-time $14.99, €12.99 or £10.99. Get it on the Chrome Web Store or Edge Add-ons, and see our extension comparison for alternatives.
Frequently asked questions
How do I save a webpage as PDF without page breaks?
Browser print dialogs cannot save a webpage as PDF without page breaks, because they always use a paper format. To get one continuous page, use an extension such as Just-One-Page-PDF, an online converter with a "One long page" size, or the DevTools trick in this guide: a CSS rule that sets the paper size to the height of the page, which Chrome's print engine then saves as a single page.
Why are images cut in half when I save a page as PDF?
Images are cut in half in a PDF when they are taller than one page of the paper you chose. Chrome moves images that fit to the next page, but slices images taller than a page. Choose a larger Paper size, lower the Scale under More settings, or save the page as one long PDF page so no break falls inside the image.
How do I stop a table from splitting across PDF pages?
A long table always continues over several PDF pages, but Chrome repeats the header row on each page. To stop single rows from being split, the page needs the CSS rule break-inside: avoid on its table rows. Without access to the CSS, change Paper size or Scale in the print dialog until the preview shows no split row.
Why does my PDF have blank pages?
Blank pages in a PDF saved from a webpage usually come from a block sized to the full screen height, space reserved for ads, or a web app whose content scrolls inside a panel. Check the preview, then choose Pages, Custom in Chrome's print dialog and type only the pages you want, for example 1-5, 8, to leave the blank ones out.
How do I add a page break when saving a webpage as PDF?
A page break in a webpage PDF must come from CSS, because the print dialog has no button to insert one. On a page you control, add break-before: page to the element that should start a new page, such as h2 headings. On other pages you can add the same rule temporarily from the DevTools Console before printing.
Where are paper size, margins and scale in Chrome's print dialog?
Paper size, Margins and Scale are in Chrome's print dialog under More settings. Press Ctrl + P or Cmd + P, set Destination to Save as PDF and click More settings. Margins offers Default, None, Minimum and Custom; Scale offers Default and Custom from 10 to 200. If Paper size is missing, the website sets its own page size in its CSS.
Can TruePage save a webpage as one single long PDF page?
TruePage cannot save a webpage as one single long PDF page. It uses a fixed large page of 14.5 by 18.8 inches, so its PDFs have fewer page breaks than Letter or A4, but they still have page breaks. For one continuous page, Just-One-Page-PDF or the DevTools CSS trick described in this guide are the better choice.