Markdown to BBCode

Paste Markdown, copy BBCode for phpBB, vBulletin or XenForo. Bold, links, images, code, quotes and lists become forum tags.

Input — Markdown
Output — BBCode
BBCode output will appear here...

To convert Markdown to BBCode, paste your post into the left panel and copy the BBCode from the right. Bold, italics, strikethrough, links, images, inline and fenced code, quotes, numbered, bulleted and nested lists, tables and headings are turned into the matching square-bracket tags. Paste the result into a phpBB, vBulletin, XenForo or other BBCode forum editor.

What does the output look like?

Patch notes with a heading and a link

Markdown in
## Patch 1.4 notes

The **inventory bug** is fixed. Full list on the [tracker](https://example.com/1.4).
BBCode out
[size=5]Patch 1.4 notes[/size]

The [b]inventory bug[/b] is fixed. Full list on the [url=https://example.com/1.4]tracker[/url].

Install steps with inline and block code

Markdown in
Install steps:

1. Back up your save
2. Copy the mod folder
3. Run `enable.sh`

```
mods/enable.cfg
```
BBCode out
Install steps:

[list=1]
[*]Back up your save
[*]Copy the mod folder
[*]Run [code]enable.sh[/code]
[/list]

[code]mods/enable.cfg
[/code]

Quote, strikethrough and an image

Markdown in
> Can we get dark mode?

It shipped in ~~1.5~~ 1.4.

![dark mode](https://example.com/dark.png)
BBCode out
[quote]Can we get dark mode?[/quote]

It shipped in [s]1.5[/s] 1.4.

[img]https://example.com/dark.png[/img]

Which forums can I paste the result into?

Any forum that reads BBCode: phpBB, vBulletin, XenForo, MyBB, SMF and many game and hobby boards. The tags for bold, links, images, code, quotes and lists are the same nearly everywhere. Headings are the exception, see the next question. Discourse and Reddit take Markdown directly, so post the original instead.

How are headings converted?

BBCode has no heading tag, so headings become text sizes: # becomes [size=6], ## becomes [size=5], down to [size=1] for ######.

vBulletin and XenForo read sizes on a 1 to 7 scale, so this works as expected there. phpBB reads the number as a percentage, so [size=6] is unreadably small. On phpBB, change the numbers to something like [size=150], or use [b] for headings.

What has no BBCode equivalent?

Tables are the shakiest part. Pipe tables become [table], [tr], [th] and [td], which XenForo 2.1 and later displays. phpBB and MyBB show them only if an admin has added a table BBCode, otherwise the tags appear as text; wrap the original pipe table in [code] instead.

Footnotes become [1] markers with the notes at the end. Task-list checkboxes, maths and Mermaid diagrams have no BBCode form and stay as plain text. Image alt text is dropped because [img] has nowhere to put it.

Why doesn't Pandoc do this?

Pandoc has no BBCode writer. It supports custom writers written in Lua, so you can script one, but nothing ships with it. For a single forum post, pasting here is quicker. If you only need the words without any tags, try Markdown to plain text.

How are tables, code, front matter and other edge cases handled?

InputWhat you get
Tables[table] with [tr], [th] and [td]; needs a forum with a table tag
Fenced code (``` or ~~~)[code]...[/code], language name dropped, contents untouched
Inline code[code]...[/code] inline, contents untouched
Lists starting with *, - or +[list] with [*] items
Nested lists[list] inside the parent [*] item
Multi-line blockquotesOne [quote] block
_italic_ and __bold__[i] and [b], same as asterisks
Images[img]url[/img]; alt text dropped
Footnotes[1] markers, notes listed at the end
Raw HTMLPassed through as typed
YAML front matterRemoved
Task lists[*][x] done, [*][ ] todo, as text
LaTeX mathLeft as $...$ source
Mermaid code blocks[code] block containing the diagram source
EmojiUnicode emoji kept; :shortcodes: kept as typed

How does this compare with Pandoc and the forum's own editor?

MDConvert (this page)PandocForum's WYSIWYG editor
Write in MarkdownYesYesNo, toolbar buttons or BBCode
BBCode outputYesOnly with a custom Lua writerYes, native
Headings sized for your forum1 to 7 scale; phpBB needs editsWhatever your writer doesYes
Tables[table] tagsDepends on your writerOnly if the forum has a table tag
Install neededNo, runs in the browserYes, plus the writer scriptNo

If you mostly write on one forum, its own editor knows its tags best. This page helps when the post already exists as Markdown, for example in a README, a changelog or notes.

Maintained by Ankit Aglawe. Last updated .

Related Tools

Need a different format? See every tool on the Markdown converter page, or go back to the MDConvert home page.

Markdown to BBCode questions

Which BBCode tags does it output?
[b], [i], [s], [url=...], [img], [code], [quote], [list], [list=1], [*], [size=1] to [size=6] and [hr]. Tables become [table], [tr], [th] and [td]. It never outputs [u] or [color], because Markdown has no syntax for them.
Do * bullets and nested lists work?
Yes. Lines starting with *, - or + are all bullets and become [*] items. An indented list becomes a [list] inside its parent [*] item, so nesting is kept.
Does _underscore_ emphasis work?
Yes. _text_ becomes [i] and __text__ becomes [b], the same as with asterisks. Underscores inside a word, as in user_id, are left alone.
Does the forum need a [hr] tag?
--- becomes [hr], which phpBB does not have by default. If your forum shows [hr] as text, delete it or replace it with a blank line.
Can I convert BBCode back to Markdown?
Not with this tool. It only goes from Markdown to BBCode.
Is my post sent anywhere?
No. The conversion runs in your browser. Your text stays on your machine until you paste it into the forum yourself.