JSON to Magic Converter
Transform JSON data into Magic: The Gathering deck format
JSON Input
Magic Deck Output
About JSON to Magic Converter
Convert JSON data to Magic: The Gathering deck format. Perfect for deck building, card management, and importing decks into MTG platforms.
Key Features
- Flexible Input: Supports multiple JSON structures for card data
- Deck Sections: Automatically organizes Commander, Main Deck, and Sideboard
- Card Counts: Handles quantity/count fields for card multiples
- Category Detection: Recognizes category/type fields for deck organization
- Statistics: Generates card count statistics for each section
- File Upload: Upload JSON files directly or paste data
- Instant Preview: Real-time conversion as you type
How to Use
- Input JSON Data: Paste your JSON data or upload a .json file
- Review Output: The Magic deck format updates automatically
- Copy or Download: Use the Copy or Download button to save your deck
Supported JSON Formats
Format 1: Array of Card Objects
[
{"name": "Lightning Bolt", "count": 4, "category": "main"},
{"name": "Counterspell", "count": 4, "category": "main"},
{"name": "Niv-Mizzet, Parun", "count": 1, "category": "commander"}
] Format 2: Structured Deck Object
{
"commander": [{"name": "Niv-Mizzet, Parun", "count": 1}],
"deck": [
{"name": "Lightning Bolt", "count": 4},
{"name": "Counterspell", "count": 4}
],
"sideboard": [{"name": "Red Elemental Blast", "count": 3}]
} Format 3: Simple String Array
[ "4 Lightning Bolt", "4 Counterspell", "10 Island", "10 Mountain" ]
Output Format
Commander 1 Niv-Mizzet, Parun Deck 4 Lightning Bolt 4 Counterspell 10 Island 10 Mountain Sideboard 3 Red Elemental Blast # Statistics: # Total cards: 22 # Main deck: 18 # Sideboard: 3 # Commander: 1
Recognized Fields
- Card Name: name, card, cardName
- Quantity: count, quantity
- Category: category, type (values: main, sideboard/side/sb, commander/cmd/cm)
Common Use Cases
- Deck Building: Convert card databases to deck format
- Import/Export: Transfer decks between different platforms
- Collection Management: Organize card collections into playable decks
- Tournament Prep: Generate deck lists for tournament registration
- Deck Analysis: Convert API data to readable deck format
Privacy & Security
All conversions happen locally in your browser. Your JSON data is never uploaded to any server, ensuring complete privacy and security.
