Runs in your browser with pdf.js and pdf-lib
Add Margins to PDF Online — room for printing, binding and notes
Give pages that run to the edge some white space, leave a wider inside margin for binding, or shrink everything to fit an A4 page with safe margins. See every page before you save, and keep your text, links and form fields working.
- PDF files aren't uploaded to our server
- Add space or keep page size
- Mirror margins for books
- Links and text kept
Add margins to PDF pages
Add a PDF, set the margins, and check every page before you save. Text, links and bookmarks stay as they are.
Drop your PDF here
or browse — one PDF, any number of pages
Margin sizes
Presets
How to make room
Your pages, with the new margins
The tinted band is the new margin. Click a page to see it full size.
How it works
Room around the content, without redrawing the page
The pages are changed in place: either the page edges move out, or the content is scaled inside the same page. Nothing is turned into a picture.
What you can do
- Set each side in millimetres, inches or points, or one value for all four.
- Grow the page, or keep A4 or Letter and shrink the content to fit.
- Use mirror margins so the binding margin is always on the inside.
- See every page with its new margins before you save, on turned and cropped pages too.
What it doesn't do
- Reflow text. Keep page size shrinks the whole page; it doesn't rewrap lines.
- Remove margins. To cut white space away, use Crop PDF.
- Change the page to a standard size. Add space makes pages bigger; use Resize PDF to land on A4 or Letter.
- Open password-protected PDFs. Unlock them first.
How to add margins to a PDF in four steps
Set sizes, pick a mode, check the pages, save.
Add your PDF
Drop a PDF onto the upload area, or click Select PDF. Every page appears below with 20 mm margins to start from.
Set the margins
- Pick the unit, then type each side or tick Same on all sides.
- Or click a preset such as Binding.
- Turn on Mirror margins for a printed book.
Choose how
Add space around the page if the content size matters, or Keep the page size if the paper size matters. Then choose the pages.
The page list updates as you type, so you see the result first.
Save and download
Click Add margins. The preview is drawn from the saved file; rename it if you like and download it.
From content at the edge to even margins
One page, before and after adding margins on all four sides.
What to set for your job
Common reasons to add margins and the settings that work for each.
| Job | What matters | What to set |
|---|---|---|
| Print a file that runs to the edge | Nothing gets cut off by the printer. | Normal, 20 mm; Keep the page size so it still prints on A4 or Letter. |
| Bind a report or book | Text isn't lost in the spine. | Binding preset, Mirror margins on, Add space around the page. |
| Leave room for review notes | Space to write beside the text. | Notes preset, 60 mm on the right, Add space around the page. |
| Meet a submission rule | Exact margin sizes. | Units in or mm, type each side, Keep the page size. Check the rule's paper size. |
| Hole-punch for a ring binder | Holes miss the text. | Left 25 mm (Inside with Mirror margins for two-sided), others 15 mm. |
| Mount slides on a page | A white frame around each slide. | Same on all sides, 15 mm, Add space around the page. |
The details
What each setting actually does
The numbers behind the result.
Units
25.4 mm = 1 in = 72 pt. Switching units converts the numbers already typed, so the margins don't change.
Add space around the page
An A4 page (210 × 297 mm) with 20 mm on every side becomes 250 × 337 mm. The content keeps its exact size and position on the new page.
Keep the page size
The content shrinks by the same amount in both directions, so nothing is stretched. A4 with 20 mm all round shrinks it to about 81%, centered in the space left.
Mirror margins
Odd pages are right-hand pages, with the spine on their left; even pages have it on the right. Inside follows the spine.
Turned and cropped pages
Sides are always as you see the page. Margins are added to the visible area, so anything an earlier crop hid stays hidden.
The rest of the file
Text, pictures, links, bookmarks, form fields and document properties are kept. Pages you didn't pick aren't changed at all.
When the margins don't come out right
Identify the problem, then use the matching fix.
Margins are far too big or small
The numbers were typed for a different unit.
Check the mm, in, pt switch; the page list shows the result before you save.
Text got too small
Keep the page size with large margins shrinks the content a lot.
Use smaller margins, or Add space around the page instead.
The paper size is no longer A4
Add space around the page makes every page bigger.
Choose Keep the page size, or run the result through Resize PDF.
The binding margin is on the wrong side
Mirror margins was off, or the book starts on a left-hand page.
Turn on Mirror margins. If page 1 is a left page, swap the Inside and Outside values.
"Margins leave no room on page 3"
With Keep the page size, the margins add up to more than that page.
Lower the margins the message names, or use Add space around the page.
A password-protected PDF won't open
Encrypted PDFs can't be rewritten by the in-browser PDF libraries.
Remove the password with Unlock PDF, then add the unlocked copy.
Margins right on the first pass
A working order that avoids the most common redo.
Decide what must stay fixed
If the paper size must stay A4 or Letter, keep the page size. If the text size matters, add space around the page.
Pick the unit first
Choose mm, in or pt before typing, so 20 means what you think it means.
Use mirror margins for two-sided printing
The spine moves from left to right on alternate pages; mirror margins follow it.
Check one page full size
Open a page in the full-size view and zoom in to check small print before you save.
Crop before adding margins
Uneven scans look better if you crop them to the content first, then add even margins.
Keep the original
The saved file is a new PDF. Keep the original so you can try other margins later.
Common questions about PDF margins
If something's not covered here, the troubleshooting section above likely has it.
What is the difference between Add space and Keep page size?
Add space makes each page bigger by the margins you set, so the content stays exactly the same size. Keep page size leaves the page at its size, such as A4, and shrinks the content evenly until it fits inside the margins.
Will text, links and form fields still work?
Yes. The pages are changed in place, not redrawn as pictures, so text stays selectable and searchable, links and bookmarks keep working, and form fields stay fillable. With Keep page size, links and fields move and shrink with the content.
How do mirror margins work?
With Mirror margins on, Left and Right become Inside and Outside. Odd pages get the inside margin on the left and even pages on the right, so the wider binding margin is always next to the spine of a printed book.
Does it work on turned or cropped pages?
Yes. Top, bottom, left and right are always the sides of the page as you see it, and margins are added to the visible area, so anything hidden by an earlier crop stays hidden.
Can I add margins to only some pages?
Yes. Under Pages, choose all, odd or even pages, or type numbers and ranges such as 1, 3-5, 8-. The tool names any number that doesn't fit the document before you save.
Why did the file not get much bigger?
Margins are white space, so they add almost nothing to the file. The content is not copied or re-compressed.
Is my PDF uploaded?
No. The PDF is opened and saved in your browser with pdf.js and pdf-lib; it is not uploaded to our server. Password-protected PDFs need to be unlocked first.
Build notes
The write-up on adding PDF margins in the browser
I wrote a tutorial on building a browser-based PDF margin tool with JavaScript and pdf-lib, with no server involved.
How to Build a Browser-Based PDF Margin Tool Using JavaScript
Covers page-size math, unit conversion and adding custom margins to PDF pages with pdf-lib.