MediaWiki to INI Converter

Transform MediaWiki tables into INI configuration files

MediaWiki Input

Which column to use as section names (0 = first column)

INI Output

About MediaWiki to INI Converter

Convert MediaWiki table markup to INI (Initialization) configuration file format. Perfect for creating configuration files from wiki documentation for applications, servers, and system settings.

Key Features

  • Section Support: Automatically creates [section] blocks from table data
  • MediaWiki Parser: Accurately parses MediaWiki table syntax with {| |} delimiters
  • Flexible Section Column: Choose which column to use as section names
  • Key Sanitization: Converts headers to valid INI keys
  • Header Comments: Optional metadata comments at file start
  • Multiple Sections: Each table row becomes a separate section
  • Standard Format: Compatible with all INI parsers

How to Use

  1. Input MediaWiki Table: Paste your MediaWiki table markup or upload a .wiki file
  2. Configure Options: Set section column and header preferences
  3. Review Output: The INI file generates automatically
  4. Copy or Download: Use the configuration file in your application

INI Format Structure

Each row in your MediaWiki table becomes a section in the INI file:

  • Section Name: Taken from the specified column (default: first column)
  • Key-Value Pairs: Other columns become key=value pairs
  • Comments: Optional header comments with generation info

Example Conversion

MediaWiki Input:

{| class="wikitable" border="1"
! Server !! Host !! Port !! Timeout !! SSL
|-
| Production || prod.example.com || 443 || 30 || true
|-
| Staging || staging.example.com || 443 || 30 || true
|-
| Development || localhost || 8080 || 60 || false
|}

INI Output:

; Generated from MediaWiki table
; Date: 2024-01-15T10:30:00.000Z

[Production]
Host=prod.example.com
Port=443
Timeout=30
SSL=true

[Staging]
Host=staging.example.com
Port=443
Timeout=30
SSL=true

[Development]
Host=localhost
Port=8080
Timeout=60
SSL=false

Common Use Cases

  • Wiki to Config: Convert wiki documentation tables to configuration files
  • Application Config: Create configuration files for applications from wiki data
  • Server Settings: Define server configurations from wiki tables
  • Database Connections: Store database connection strings from wiki documentation
  • Environment Variables: Manage environment-specific settings
  • System Configuration: Generate system config files from wiki data

INI File Features

  • Standard Format: Compatible with Python configparser, PHP parse_ini_file, and more
  • Section Organization: Logical grouping with [section] headers
  • Key-Value Pairs: Simple key=value syntax
  • Comments: Semicolon-prefixed comments for documentation

Key Sanitization

Headers are automatically converted to valid INI keys:

  • Special characters replaced with underscores
  • Numbers at start prefixed with underscore
  • Alphanumeric, dots, dashes, and underscores preserved

Configuration Tips

  • Section Column: Use column 0 (first) for section names by default
  • Multiple Configs: Each row creates a separate configuration section
  • Empty Values: Empty cells become empty values (key=)
  • Comments: Enable header comments for better documentation

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.