JSON to MediaWiki Converter

Transform JSON data into MediaWiki table format

JSON Input

MediaWiki Output

About JSON to MediaWiki Converter

Convert JSON data to MediaWiki table markup format. Perfect for creating tables on Wikipedia, MediaWiki-powered wikis, and documentation sites.

Key Features

  • MediaWiki Syntax: Generates proper pipe-based table markup
  • Table Classes: Support for wikitable, sortable, collapsible, and prettytable classes
  • Header Support: Optional header row with proper markup
  • Character Escaping: Automatically escapes special MediaWiki characters
  • Multiple Formats: Supports arrays of objects, single objects, and primitive values
  • Sortable Tables: Option to make tables sortable in MediaWiki
  • File Upload: Upload JSON files directly or paste data
  • Instant Preview: Real-time conversion as you type

How to Use

  1. Input JSON Data: Paste your JSON data or upload a .json file
  2. Configure Options: Choose table class, headers, and sortable settings
  3. Review Output: The MediaWiki markup updates automatically
  4. Copy or Download: Use the Copy or Download button to save your markup

Example Conversion

JSON Input:

[
  {"name": "John Doe", "age": 28, "city": "New York"},
  {"name": "Jane Smith", "age": 34, "city": "London"}
]

MediaWiki Output:

{| class="wikitable"
|-
! name
! age
! city
|-
| John Doe
| 28
| New York
|-
| Jane Smith
| 34
| London
|}

Table Classes

  • wikitable: Standard MediaWiki table styling with borders
  • wikitable sortable: Sortable table with clickable headers
  • wikitable collapsible: Collapsible table that can be hidden/shown
  • prettytable: Alternative styling for tables

Common Use Cases

  • Wikipedia Articles: Create data tables for Wikipedia articles
  • Wiki Documentation: Generate tables for MediaWiki-based documentation
  • Data Presentation: Display structured data in wiki format
  • Comparison Tables: Create comparison tables from JSON data
  • Reference Tables: Generate reference tables for wiki pages

MediaWiki Table Syntax

The converter generates MediaWiki markup with the following structure:

  • {|: Start of table with optional class attribute
  • |-: Row separator
  • !: Header cell
  • |: Data cell
  • |}: End of table
  • Special Characters: Pipes, brackets, and braces are properly escaped

Privacy & Security

All conversions happen locally in your browser. Your JSON data is never uploaded to any server, ensuring complete privacy and security.