Skip to content

A complete list of Google Docs URL parameters

Grant Kiely · July 23, 2024

Save time by exporting, previewing, creating templates, and more with these Google Doc URL parameters.


Google Docs has several built-in URL parameters that allow you to perform various helpful tasks to save time. The following is intended to be a reference guide for these URL parameters.

The examples require the URL format https://docs.google.com/document/d/DOC_ID where DOC_ID is the document ID.

Export

/export?format=pdf - Export the document as a PDF.

/export?format=doc - Export the document as a Word document.

/export?format=odt - Export the document as an OpenDocument text document.

/export?format=rtf - Export the document as a Rich Text Format document.

/export?format=txt - Export the document as a plain text document.

/export?format=html - Export the document as an HTML document.

Preview

/preview - Preview the document without the toolbar and outline.

/preview?rm=demo - Preview the document with outline.

/preview?rm=embedded - Preview the document with the toolbar and outline.

/preview?rm=full - Preview the document with the file icon, toolbar, and outline.

Mobile view

/mobilebasic - View the document in mobile view.

/mobilebasic?rm=minimal - View the document in mobile view without the title.

Copy

/copy - Copy the document.

/copy?copyComments=true - Copy the document with comments.

/copy?usersToInvite=email1,email2 - Copy the document and invite users to edit.

/copy?copyDestination=FOLDER_ID - Copy the document to a specific folder.

/copy?title=NewTitle - Copy the document with a new title.

/copy?copyCollaborators=false - Copy the document without collaborators.

/copy?includeResolvedCommentsOnCopy=true - Copy the document with resolved comments.

/copy?title=NewTitle&usersToInvite=email1,email2 - Combine parameters to create a custom copy URL. For example, to copy a document with a new title and invite users to edit.

Template

/template/preview - Create a new document based on a template.

.new

https://docs.new - Create a new document.

Embed a document

<iframe src="https://docs.google.com/document/d/DOC_ID/preview" width="100%" height="600px"></iframe> - Embed a document in an iframe.

Open as a specific user

/edit?authuser=USER_EMAIL - Open a document with a specific email address.

Are you ready to create a knowledge base?

Start using You Need A Wiki today!

Get started for free