MediaWiki to MediaWiki Converter

Format, clean, and optimize MediaWiki table markup with various formatting options

MediaWiki Input

MediaWiki Output

About MediaWiki to MediaWiki Converter

Format, clean, and optimize MediaWiki table markup with various formatting options. Perfect for standardizing wiki tables, cleaning up messy markup, and applying consistent formatting.

Key Features

  • Format Styles: Choose between readable (with newlines) or compact formatting
  • Attribute Preservation: Keep or standardize table attributes
  • Row Sorting: Alphabetically sort table rows
  • Clean Output: Remove inconsistencies and standardize formatting
  • Copy & Download: Easy integration into wiki pages

How to Use

  1. Input MediaWiki Table: Paste your MediaWiki table markup or upload a .wiki file
  2. Configure Options: Choose format style and other preferences
  3. Review Output: The formatted MediaWiki markup generates automatically
  4. Copy or Download: Use the cleaned markup in your wiki

Format Styles

  • Readable: Includes newlines after each row for better readability in source
  • Compact: Minimal whitespace for smaller file size

Options

  • Preserve Table Attributes: Keep original table attributes (class, border, etc.) or use default "wikitable"
  • Sort Rows Alphabetically: Sort data rows based on first column values

Example Conversion

Input (messy formatting):

{| class="wikitable sortable" border="1"
!Name!!Age!!City
|-
|John Doe||28||New York
|-
|Jane Smith||34||London
|}

Output (readable format):

{| class="wikitable sortable" border="1"
! Name !! Age !! City
|-
| John Doe || 28 || New York
|-
| Jane Smith || 34 || London
|}

Common Use Cases

  • Format Cleanup: Standardize inconsistent MediaWiki table formatting
  • Code Review: Make wiki markup more readable for review
  • Data Sorting: Alphabetically organize table rows
  • Attribute Standardization: Apply consistent table attributes
  • Minification: Reduce file size with compact formatting
  • Wiki Migration: Clean up tables during wiki migrations

MediaWiki Table Syntax

Supports standard MediaWiki table markup:

  • {|: Table opening with optional attributes
  • ! Header: Exclamation mark for header cells (separated by !!)
  • |-: Row separator
  • | Data: Pipe for data cells (separated by ||)
  • |}: Table closing

Privacy & Security

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