XML to Magic Converter
Transform XML data into Magic: The Gathering deck format
XML Input
Magic Deck Output
About XML to Magic Converter
Convert XML data to Magic: The Gathering deck format. Perfect for managing card collections, building decks, and exporting to deck-building applications and online platforms.
Key Features
- Automatic Parsing: Intelligently extracts card data from XML structure
- Column Mapping: Specify which columns contain quantity and card name
- Standard Format: Generates the widely-used "Quantity CardName" format
- Flexible Input: Works with various XML structures and element names
- Attribute Support: Can use XML attributes as data sources
- Error Handling: Clear error messages for invalid data
How to Use
- Input XML Data: Paste your XML data or upload an .xml file
- Configure Columns: Specify the column names for quantity and card name
- Copy or Download: Copy the deck list or download as .txt file
- Import to Apps: Use the output in MTG Arena, MTGO, or other deck builders
Magic Deck Format
The standard Magic: The Gathering deck format is simple:
Quantity CardName 4 Lightning Bolt 3 Counterspell 20 Island
Example Conversion
XML Input:
<?xml version="1.0"?>
<deck>
<card>
<quantity>4</quantity>
<name>Lightning Bolt</name>
<set>Alpha</set>
</card>
<card>
<quantity>3</quantity>
<name>Counterspell</name>
<set>Alpha</set>
</card>
<card>
<quantity>20</quantity>
<name>Island</name>
<set>Basic</set>
</card>
</deck> Magic Deck Output:
// Magic: The Gathering Deck Format // Format: Quantity CardName 4 Lightning Bolt 3 Counterspell 20 Island
Column Configuration
- Quantity Column: The XML element/attribute containing the card quantity (default: "quantity")
- Card Name Column: The XML element/attribute containing the card name (default: "name")
- Case Insensitive: Column names are matched case-insensitively
- Fallback: If columns not found, uses first two columns automatically
Supported Platforms
The generated deck format is compatible with:
- MTG Arena: Import decks directly into the game
- Magic Online (MTGO): Use for online play
- Deck Builders: Archidekt, Moxfield, TappedOut, EDHRec
- Collection Managers: Deckbox, TCGPlayer, CardKingdom
- Spreadsheets: Easy to import into Excel or Google Sheets
Supported XML Structures
- Repeating Elements: Automatically detects common record names (card, row, record, item, entry)
- Nested Elements: Extracts child element values
- Attributes: Can use XML attributes (prefix with @)
- Mixed Content: Handles various XML structures
Common Use Cases
- Deck Building: Convert card databases to deck lists
- Collection Management: Export collections to standard format
- Tournament Prep: Prepare deck lists for events
- Deck Sharing: Share decks with friends and online communities
- Inventory: Track card inventory and quantities
- Trading: Create trade lists in standard format
Tips for Best Results
- Consistent Naming: Use consistent element names across all cards
- Valid Quantities: Ensure quantity values are numbers
- Complete Names: Use full, official card names
- Check Output: Verify the output before importing to apps
Privacy & Security
All conversions happen locally in your browser. Your XML data is never uploaded to any server, ensuring complete privacy and security.
