Direct Linking
Direct linking lets you create URLs that automatically prefill Magic: The Gathering® decklists, player info, and event details on Decklist.gg.
Tournament organizers can prefill event details so players only need to add their decks. Deck builders can share complete lists with a single link. Teams can distribute standardized decklists before events. Other apps can also integrate with Decklist.gg by generating direct links, giving their users instant access to prefilled Magic: The Gathering® deck registration sheets.
No matter how you use it, direct linking makes sharing and managing decklists fast, consistent, and reliable.
How it works
Decklist.gg links use URL parameters to prefill and configure the app automatically. When someone opens a link that includes parameters, the app will:
- Load the specified decklist and format.
- Fill in player and event details (if provided).
- Open directly to the Preview step (if set).
- Generate a ready-to-download PDF decklist.
Share links
You can manually build shareable URLs or generate them programmatically, but the Share button on the Preview step does it for you automatically. It creates a properly encoded URL based on your current configuration and copies it to your clipboard — no manual setup required.
To create a share link in the app:
- Navigate to the homepage.
- Choose Import decklist or Enter manually.
- On the Deck step, select a format and finalize your decklist.
- On the Registration step, add player or event details (optional).
- On the Preview step, click the Share button at the top of the page.
Your fully encoded decklist link will be copied to the clipboard and ready to share.
URL parameters
Each parameter adds specific information to your link. You can mix and match them freely — any field you leave out will simply remain blank.
Use these parameters when building links manually or when integrating Decklist.gg with another app or site. The following sections explain each parameter in detail, including setup examples.
Deck parameters
These parameters allow you to set the decklist and format.
| Parameter | Description |
|---|---|
decklist | The full list of cards, including quantities. |
format | The deck format. Available options are: standardpioneermodernlegacyvintagepauperhistoricalchemytimelessgladiatorpennyoldschoolpremoderncommanderdueloathbreakerpaupercommanderpredhbrawlstandardbrawl |
Decklist format
When encoding a decklist, each card should appear on its own line %0A. Start with the quantity, followed by a space %20, then the card name. You can use just a number or a number followed by an x.
Here are some examples of valid formats (pre-encoded):
Lightning Bolt
4 Lightning Bolt
4x Lightning Bolt
4 Lightning Bolt (DMR)4: Lightning Bolt
Lightning Bolt x4
Lightning Bolt 4
Lightning Bolt * 4Section headers
You can separate the deck into sections using headers. If no header is provided, cards are added to the mainboard. Section headers are case-insensitive:
| Section | Accepted Headers |
|---|---|
| Mainboard | MainMain:MainboardMainboard:MaindeckMaindeck: |
| Sideboard | SideboardSideboard: |
| Commander | CommanderCommander:CommandersCommanders: |
Examples
https://decklist.gg/?format=modern&decklist=4%20Lightning%20Bolt%0A20%20Mountain%0ASideboard%0A3%20Shock%0A2%20Smash%20to%20Smithereenshttps://decklist.gg/?format=commander&decklist=Commander%0A1%20Atraxa%2C%20Praetors%27%20Voice%0AMain%0A1%20Sol%20Ring%0A1%20Command%20Tower%0A97%20ForestRegistration parameters
You can include player, deck, and event details using the parameters below. Users can still edit these fields after the link is opened.
| Parameter | Description |
|---|---|
firstName | Player first name |
lastName | Player last name |
event | Tournament or event name |
deckName | Deck name or archetype |
deckDesigner | Deck creator or designer |
location | Event location |
date | Event date in YYYY-MM-DD format |
Example
https://decklist.gg/?event=Friday%20Night%20Magic&date=2025-10-11&location=Local%20Game%20Store&step=registrationUI parameters
UI parameters control how the site opens when the link is visited. Currently, a single parameter is supported.
| Parameter | Description |
|---|---|
step | The starting view when the link is opened. Available values are: deckregistrationpreview |
Including step=preview opens the link directly in preview mode, where decklist PDF is generated automatically. This is recommended when linking to Decklist.gg from external apps or sites.
Example
https://decklist.gg/?firstName=John&lastName=Doe&event=FNM&deckName=Burn&format=standard&decklist=4%20Lightning%20Bolt%0A20%20Mountain%0ASideboard%0A3%20Shock&step=previewEncoding basics
Decklist.gg supports standard URL encoding, which ensures your decklists, player names, and event details load correctly. Most browsers and apps will handle encoding automatically, but if you’re creating links manually or generating them in code, make sure to encode special characters properly.
Below are some common encoding rules to follow:
| Character | Encoding | Example |
|---|---|---|
| Space | %20 | Lightning%20Bolt |
| Newline | %0A | 4%20Lightning%20Bolt%0A4%20Mountain |
| Apostrophe ( ' ) | %27 | Praetors%27%20Voice |
| Comma | %2C | Atraxa%2C%20Praetors%27%20Voice |
Tip: When encoding URLs in JavaScript, use encodeURIComponent() to safely escape special characters.