1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert HTML to MediaWiki

Paste HTML into the left editor and the MediaWiki tab on the right shows the matching wikitext. Choose whether your level 1 heading starts at one or two equals signs.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Editor

DocsWordGmailNotionMarkdown
0 words
Ready · LocalPaste here from Google Docs, Word, Gmail, Notion
02

Live Output

Markdown
SyncedEdit the code here; the editor on the left updates itself
0 characters
Every change is processed right in your browserUTF-8 · by xuanhieu.org

When you need to convert HTML to MediaWiki

Wikis that run MediaWiki, such as Wikipedia or a company's internal wiki, use their own syntax: headings wrapped in equals signs, lists made of asterisks and hash marks, tables opened with {|. Moving an HTML article into that by hand is tiring. The tool reads the HTML into a structure and writes wikitext, escaping characters that could be misread with a nowiki tag.

How to do it

  1. Paste HTML into the Editor editor on the left, or paste content copied from a web page.
  2. Open the MediaWiki tab on the right (selected on this page) and then ⚙ Options.
  3. Choose Level 1 heading to decide whether a level 1 heading uses one or two equals signs, the Code blocks style and whether to use wikitable.
  4. Press Copy result and paste it into the page in the wiki's source edit mode.

A real example

The level 1 heading becomes == Perfume River == because the option starts at two equals signs, the list becomes lines starting with an asterisk, bold and italic become three and two apostrophes, and the table becomes a {| block with the wikitable class.

Input · HTML · HTML on the clipboard

<h1>Perfume River</h1><p>The <strong>Perfume River</strong> flows through the city of Huế. See more about <a href="https://example.com/hue">Huế</a>.</p><h2>Geography</h2><ul><li>About 80 km long</li><li>Drains into the <em>Tam Giang lagoon</em></li></ul><h2>Figures</h2><table><thead><tr><th>Metric</th><th>Value</th></tr></thead><tbody><tr><td>Length</td><td>80 km</td></tr><tr><td>Basin</td><td>2,830 km²</td></tr></tbody></table>

Result · MediaWiki

== Perfume River ==

The '''Perfume River''' flows through the city of Huế. See more about [https://example.com/hue Huế].

=== Geography ===

* About 80 km long
* Drains into the ''Tam Giang lagoon''

=== Figures ===

{| class="wikitable"
! Metric !! Value
|-
| Length
| 80 km
|-
| Basin
| 2,830 km²
|}

Options worth changing

Level 1 heading
MediaWiki reserves level 1 for the page title, so articles usually start at two equals signs. Choose two so your level 1 heading becomes a major section.
wikitable style table
Turn it on for borders and shading like Wikipedia. Turn it off if your wiki has its own table style.
Code blocks
syntaxhighlight colours the syntax but needs an extension. Use pre if your wiki does not have it.

Common problems

Limits

Frequently asked questions

Can I paste wikitext back to edit it?

Yes. Edit in the MediaWiki pane and the left editor follows. Templates, ref footnotes and comments are dropped when reading.

Does it work for Confluence?

Confluence uses a different syntax. Pick the Jira / Confluence tab.

Do Vietnamese diacritics survive?

Yes. All text stays Unicode.

Is my content sent anywhere?

No. The conversion runs in your browser.

Related conversions

1xA2Z · Guide

Document statistics

Most frequent words