HTML to MediaWiki Converter
Transform HTML into MediaWiki markup
HTML Input
MediaWiki Output
About HTML to MediaWiki Converter
Convert HTML documents to MediaWiki markup format for use on Wikipedia, Wikimedia projects, and other MediaWiki-powered wikis. Perfect for migrating content or creating wiki pages from HTML sources.
Key Features
- Complete Markup Support: Converts headings, paragraphs, lists, and tables
- Text Formatting: Preserves bold, italic, and other text styles
- Table Conversion: Creates wikitable markup with optional styling
- Link Handling: Converts both internal and external links
- List Support: Handles ordered and unordered lists
- Image Markup: Converts images to MediaWiki file syntax
- Sortable Tables: Optional sortable table support
How to Use
- Input HTML: Paste your HTML code or upload an .html file
- Configure Options: Choose table styling and caption options
- Review Output: The MediaWiki markup updates automatically
- Copy or Download: Use the Copy or Download button to save your .wiki file
Supported HTML Elements
- Headings: h1-h6 → = Heading =, == Heading ==, etc.
- Text Formatting: strong/b → '''bold''', em/i → ''italic''
- Lists: ul → * item, ol → # item
- Links: a → [[Internal Link]] or [http://external.com External]
- Tables: table → wikitable markup
- Images: img → [[File:image.jpg]]
- Blockquotes: blockquote → : quoted text
- Code: code/pre → <code> or <pre> tags
MediaWiki Markup Examples
Headings
= Level 1 = == Level 2 == === Level 3 ===
Text Formatting
'''bold text''' ''italic text'' '''''bold and italic'''''
Lists
* Unordered item 1 * Unordered item 2 # Ordered item 1 # Ordered item 2
Tables
{| class="wikitable"
|+ Table Caption
! Header 1 !! Header 2
|-
| Cell 1 || Cell 2
|-
| Cell 3 || Cell 4
|} Common Use Cases
- Wikipedia Editing: Convert HTML content for Wikipedia articles
- Wiki Migration: Migrate content from HTML sites to MediaWiki
- Documentation: Create wiki documentation from HTML sources
- Content Import: Import blog posts or articles to wikis
- Collaborative Writing: Prepare content for wiki collaboration
- Knowledge Base: Build wiki-based knowledge bases
Tips for Best Results
- Clean HTML: Use semantic HTML for better conversion
- Table Headers: Use <th> elements for table headers
- Table Captions: Use <caption> for table titles
- Internal Links: Use relative URLs for internal wiki links
- External Links: Use full URLs for external links
- Review Output: Always review and adjust the markup as needed
MediaWiki Compatibility
Generated markup is compatible with:
- Wikipedia and all Wikimedia projects
- MediaWiki 1.19 and later
- All standard MediaWiki extensions
- Wikia/Fandom wikis
Privacy & Security
All conversions happen locally in your browser. Your HTML is never uploaded to any server, ensuring complete privacy and security.
