Categories

PDF Reorder Pages

Reorder PDF pages with custom sequence, with optional append of remaining pages

Rearrange pages in a PDF to a new order.

Examples:

  • Move appendix forward: 1-2,10-12,3-9
  • Custom picks: 1,5,2,6,3
  • Optionally append non-listed pages at the end

Example Results

2 examples

Reorder Explicit Sequence

Reorders a 4-page source to 1,3,2,4 without appending extras

pdf-reorder-pages-example1.pdf View File
View input parameters
{ "sourceFile": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf", "pageOrder": "1,3,2,4", "appendRemaining": false }

Front-Load and Append Remaining

Moves page 4 then page 1 to the front and appends unspecified pages automatically

pdf-reorder-pages-example2.pdf View File
View input parameters
{ "sourceFile": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf", "pageOrder": "4,1", "appendRemaining": true }

Click to upload file or drag and drop file here

Maximum file size: 400MB Supported formats: application/pdf

Key Facts

Category
PDF Tools
Input Types
file, text, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Easily rearrange the pages of any PDF document using a custom sequence. Whether you need to move an appendix to the front, extract specific pages, or reorder chapters, this tool provides a simple way to restructure your files without complex software.

When to Use

  • When you need to move specific pages like appendices or cover sheets to the beginning of a document.
  • When you want to extract a custom selection of pages from a large report or manual.
  • When you need to fix the page order of a document that was scanned or exported incorrectly.

How It Works

  • Upload your PDF file to the tool.
  • Enter your desired page sequence in the input field using comma-separated numbers or ranges (e.g., 1-2, 5, 3-4).
  • Toggle the 'Append Remaining Pages' option if you want to include any pages not specified in your sequence at the end of the file.
  • Process the file and download your newly reordered PDF.

Use Cases

Reorganizing academic papers by moving references or appendices to the front.
Creating custom booklets by selecting and reordering specific pages from a source document.
Correcting the page order of scanned documents that were processed in the wrong sequence.

Examples

1. Custom Page Sequence

Background
A user has a 4-page document and needs to swap the middle pages to fix a logical flow error.
Problem
The original order is 1, 2, 3, 4, but the content requires 1, 3, 2, 4.
How to Use
Upload the file and enter '1,3,2,4' in the Page Order field, keeping 'Append Remaining Pages' unchecked.
Example Config
pageOrder: 1,3,2,4; appendRemaining: false
Outcome
A new 4-page PDF is generated with the pages in the exact requested order.

2. Front-Loading Important Pages

Background
A project manager has a long report and wants the summary (page 4) and the cover (page 1) to appear first.
Problem
The important pages are buried at the end or scattered, and the user wants to keep the rest of the document intact.
How to Use
Upload the file, enter '4,1' in the Page Order field, and enable 'Append Remaining Pages'.
Example Config
pageOrder: 4,1; appendRemaining: true
Outcome
The output file starts with page 4 and 1, followed by the remaining pages (2 and 3) in their original order.

Try with Samples

pdf, file

Related Hubs

FAQ

Can I use page ranges in the sequence?

Yes, you can define ranges using a hyphen, such as 1-3, 10-12.

What happens if I don't check 'Append Remaining Pages'?

Only the pages you explicitly list in the sequence will be included in the final output file.

Is there a limit to the file size I can upload?

The tool supports PDF files up to 400MB.

Can I reorder pages multiple times in one sequence?

Yes, you can list the same page number multiple times if you need to duplicate a page in the output.

Does this tool change the content of the pages?

No, the tool only changes the order of the pages; the content remains exactly as it was in the original file.

API Documentation

Request Endpoint

POST /en/api/tools/pdf-reorder-pages

Request Parameters

Parameter Name Type Required Description
sourceFile file (Upload required) Yes -
pageOrder text No -
appendRemaining checkbox No -

File type parameters need to be uploaded first via POST /upload/pdf-reorder-pages to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-pdf-reorder-pages": {
      "name": "pdf-reorder-pages",
      "description": "Reorder PDF pages with custom sequence, with optional append of remaining pages",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-reorder-pages",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]