HTML to Magic Converter

Transform HTML into MTG deck list format

About HTML to Magic Converter

Convert HTML deck lists to Magic: The Gathering deck format compatible with MTG Arena, MTGO, and popular deck-building websites. Perfect for importing decks from web pages and organizing your collection.

Key Features

  • Table Extraction: Automatically extracts cards from HTML tables
  • List Support: Parses ordered and unordered lists
  • Quantity Detection: Recognizes card quantities (4x, 4, etc.)
  • Card Grouping: Groups cards by type (Creatures, Spells, Lands)
  • Set Information: Optional set code inclusion
  • Statistics: Displays total and unique card counts
  • Comments: Optional deck comments and headers

How to Use

  1. Input HTML: Paste HTML containing a deck list (tables or lists) or upload a file exported from a website.
  2. Configure Options: Choose grouping and formatting options
  3. Review Output: The deck list updates automatically
  4. Copy or Download: Use the Copy or Download button to save your deck

Supported HTML Formats

  • Tables: Qty | Card Name | Set | Type columns
  • Lists: "4 Counterspell" or "4x Counterspell (ISD)"
  • Text: Plain text with quantities and card names
  • Mixed: Combination of tables and lists

Output Format

The converter generates standard MTG deck format:

// Creatures (6)
4 Snapcaster Mage
2 Vendilion Clique

// Instants (10)
4 Counterspell
3 Path to Exile
3 Cryptic Command

// Lands (13)
4 Hallowed Fountain
4 Flooded Strand
3 Island
2 Plains

Card Grouping

When "Group by card type" is enabled, cards are organized into:

  • Creatures: All creature cards
  • Planeswalkers: Planeswalker cards
  • Instants: Instant spells
  • Sorceries: Sorcery spells
  • Enchantments: Enchantment cards
  • Artifacts: Artifact cards
  • Lands: Land cards
  • Other: Uncategorized cards

Common Use Cases

  • Deck Import: Import decks from websites to MTG Arena/MTGO
  • Collection Management: Organize your card collection
  • Deck Building: Convert web deck lists to editable format
  • Tournament Prep: Format deck lists for tournament submission
  • Deck Sharing: Create shareable deck lists
  • Archiving: Save deck lists in standard format

FAQ

  • Which Magic platforms is this compatible with?
    The generated text format is compatible with most Magic: The Gathering tools, including MTG Arena, MTGO, and popular deck-building websites that accept “quantity + card name” lists.
  • Do I need set codes?
    Set codes are optional. If you enable set information and your HTML contains them, they will be included in parentheses (e.g. 4 Snapcaster Mage (ISD)), which many sites understand.
  • What if my HTML doesn’t have card types?
    If type information is missing, cards are placed in the “Other” section when grouping is enabled. You can still manually move them later in your deck editor.
  • Can this handle sideboards?
    If your HTML separates mainboard and sideboard into different sections or tables, you can convert them separately or post‑edit the output to add sideboard labels.

Tips for Best Results

  • Structured Data: Use tables or lists for best extraction
  • Clear Quantities: Include card quantities (4, 4x, etc.)
  • Card Names: Use exact card names from Gatherer
  • Type Information: Include card types for proper grouping
  • Set Codes: Use standard 3-letter set codes (ISD, MOR, etc.)

Privacy & Security

All HTML to Magic deck conversions run entirely in your browser. Your deck lists, card choices, and collection details are never uploaded or stored on any server.