The State of Docs Report 2025 is live! Dive in and see why docs matter more than ever:
Read the report
LogoLogo
Product
HomepageBook a demoCommunityBlog
PricingLog inSign up

Product
HomepageBook a demoCommunityBlogPricingLog inSign up
  • Documentation
  • Developers
  • Guides
  • Changelog
  • Help Center
  • Getting Started
    • GitBook Documentation
    • Quickstart
    • Importing content
    • GitHub & GitLab Sync
      • Enabling GitHub Sync
      • Enabling GitLab Sync
      • Content configuration
      • GitHub pull request preview
      • Commit messages & Autolink
      • Monorepos
      • Troubleshooting
  • Creating Content
    • Formatting your content
      • Inline content
      • Markdown
    • Content structure
      • Spaces
      • Pages
      • Collections
    • Blocks
      • Paragraphs
      • Headings
      • Unordered lists
      • Ordered lists
      • Task lists
      • Hints
      • Quotes
      • Code blocks
      • Files
      • Images
      • Embedded URLs
      • Tables
      • Cards
      • Tabs
      • Expandable
      • Stepper
      • Drawings
      • Math & TeX
      • Page links
    • Reusable content
    • Broken links
    • Searching content
      • Search & Quick find
      • GitBook AI
    • Writing with GitBook AI
    • Version control
  • API References
    • OpenAPI
      • Add an OpenAPI specification
      • Insert API reference in your docs
    • Guides
      • Structuring your API reference
      • Adding custom code samples
      • Managing API operations
      • Describing enums
      • Integrating with CI/CD
  • Extensions reference
  • Publishing Documentation
    • Publish a docs site
      • Public publishing
      • Private publishing with share links
    • Site structure
      • Content variants
      • Site sections
    • Site customization
      • Icons, colors, and themes
      • Layout and structure
      • Extra configuration
    • Set a custom domain
    • Setting a custom subdirectory
      • Configuring a subdirectory with Cloudflare
      • Configuring a subdirectory with Vercel
    • Site settings
    • Site insights
    • Site redirects
    • Visitor authentication
      • Enabling visitor authentication
      • Setting up Auth0
      • Setting up Azure AD
      • Setting up AWS Cognito
      • Setting up Okta
      • Setting up OIDC
      • Setting up a custom backend
  • LLM-ready docs
  • Collaboration
    • Live edits
    • Change requests
    • PDF export
    • Inviting your team
    • Comments
    • Notifications
  • Integrations
    • Install and manage integrations
    • GitHub Copilot
  • Account management
    • Plans
      • Legacy pricing
      • Sponsored site plan
      • Non-profit plan
      • Billing policy
    • Subscription cancellations
    • Personal settings
    • Organization settings
    • Member management
      • Invite or remove members
      • Roles
      • Teams
      • Permissions and inheritance
    • SSO & SAML
      • SSO Members vs non-SSO
  • Resources
    • GitBook UI
    • Keyboard shortcuts
    • Glossary
Powered by GitBook
LogoLogo

Resources

  • Showcase
  • Enterprise
  • Status

Company

  • Careers
  • Blog
  • Community

Policies

  • Subprocessors
  • Terms of Service
On this page
  • Using the Import Panel
  • Supported import formats
  • The Import panel
  • Limitations
  • Import using Git Sync

Was this helpful?

Edit on GitHub
  1. Getting Started

Importing content

How to import existing content into GitBook from Confluence, Notion, Git and more

You can migrate and unify existing documentation in GitBook using the import tool.

You have the option to import single or multiple pages using our built-in import tool — or an entire Git repository using Git Sync.

Using the Import Panel

Supported import formats

GitBook supports imports from websites or files in the following formats:

  • Markdown (.md or .markdown)

  • HTML (.html)

  • Microsoft Word (.docx)

We also support imports from:

  • Confluence

  • Notion

  • GitHub Wiki

  • Quip

  • Dropbox Paper

  • Google Docs

If you want to import multiple pages, you can upload a ZIP file containing HTML or Markdown files.

GitBook is Markdown-based, so importing content in Markdown format will yield the best results. If your current tools support exporting in Markdown, we recommend using that format for a smoother import process.

The Import panel

When you create a new space, you’ll have the option to import content from the bottom sheet of the first empty page.

After choosing an input source, you can select the file you’d like to import.

GitBook imports content from various sources, but differences in product features and document formats may cause variations in the imported content compared to the original source.

Limitations

GitBook currently has the following limits for imported content:

  • The maximum number of pages that can be uploaded in a single import is 20.

  • The maximum number of files (images etc.) that can be uploaded in a single import is 20.


Import using Git Sync

For importing large volumes of content into GitBook, we recommend using Git Sync. Unlike our integrated import tool, Git Sync is better suited for handling larger migrations efficiently.

Here’s how to do it:

1

Convert your content into Markdown

GitBook is Markdown-based, so importing content in Markdown format will yield the best results. If your current tools support exporting in Markdown, we recommend using that format for a smoother import process.

If your content isn’t already in Markdown files, we recommend using a script (like Martkitdown) or an online tool to convert your content.

2

Organize your content in GitHub or GitLab

When setting up your GitBook site, it’s crucial to organize your content in your GitHub or GitLab repository efficiently. Since Git Sync occurs at the space level, carefully plan how to group your content. Create multiple repositories or folders, ensuring the necessary Markdown files are in the correct locations.

3

Set up spaces and Git Sync

To organize your content, create one or more spaces in GitBook as needed. Install the GitHub Sync or GitLab Sync integrations in your organization and configure it for those spaces. You’ll need to synchronize your space with the folder or repository you set up in the previous step.

4

Run Git Sync in the direction GitHub → GitBook

When following the configuration process, make sure you select the direction of GitHub → GitBook. This will result in the contents of your folder or repository being pulled from GitHub or GitLab into GitBook.

Last updated 3 months ago

Was this helpful?

Alternatively, you can always import a page or subpage by selecting New page > Import new pages in the table of contents, or opening the Actions menu for a page and choosing Import subpages.

You’ll find the essential steps to import your content below. For more detailed steps and a video demo, head over to our dedicated guide to .

The import panel in GitBook.
importing content into GitBook using Git Sync