Skip to content
ToolZone

BBCode to HTML

Convert BBCode markup, the bracket-based tags used on many older forums, into clean HTML that can be used on modern websites and platforms.

Runs in your browser. Nothing you enter or upload leaves your device.

HTML output…
Supported tags: [b] [i] [u] [s] · [url=…] [email] [img] · [color=red] [size=1–7 or px] · [quote=Name] [code] · [list] [list=1] [list=a] [*] · [center] [left] [right] · [h1]–[h3] [sub] [sup]. Links only allow http, https, mailto and relative URLs, so javascript: links are blocked.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the BBCode to HTML

BBCode to HTML converts the square-bracket formatting used on forums into standard HTML tags. Paste a post written in BBCode and copy the HTML source for a website, blog, or email.

How it works

First, &, <, > and quotes are escaped so any HTML in the input is shown as text. [code] blocks are set aside so their contents aren't converted. Then each BBCode pair is replaced with its HTML equivalent, repeatedly until nothing changes, so nested tags like [b] inside [b] and tags spanning several lines all convert.

Links and images only keep http, https, mailto and relative URLs; anything else, such as javascript:, becomes #. [color] accepts only color names and hex codes, and [size] accepts 1 to 7 (the old forum scale) or a number in px, pt or %. Line breaks become <br />, except right after block elements like lists and quotes.

How to use

  1. 1

    Paste your BBCode into the input box.

  2. 2

    Switch between HTML code and Preview to check the result.

  3. 3

    Copy the HTML or download it as post.html.

Worked examples

Bold and link

A short forum line.

Input
[b]Hello[/b] and [url=https://example.com]visit us[/url]
Result
<strong>Hello</strong> and <a href="https://example.com">visit us</a>

Color and escaping

Text containing a < sign.

Input
[color=red]Warning:[/color] use [i]x < y[/i]
Result
<span style="color:red">Warning:</span> use <em>x &lt; y</em>

List

A bulleted list across lines.

Input
[list] [*]One [*]Two [/list]
Result
<ul><br /><li>One</li><li>Two</li></ul>

The line break right after [list] becomes a <br /> inside the list; remove it if you want clean markup.

Limitations
[spoiler], [table], [youtube] and other forum-specific tags aren't supported and are left as text. Unclosed tags are left as BBCode. The output is HTML fragments without a stylesheet; headings and quotes take your site's styles.
Assumptions
Input uses common phpBB-style BBCode.
Privacy
The conversion runs in your browser, and your text is not sent anywhere.

Frequently asked questions

What is BBCode used for?+

BBCode is a lightweight markup language used on forum software to format posts with tags like [b] for bold and [url] for links.

Which BBCode tags are supported?+

[b], [i], [u], [s], [sub], [sup], [h1] to [h3], [url], [url=...], [email], [img], [color=...], [size=...], [center], [left], [right], [quote], [quote=Name], [code], and [list], [list=1] and [list=a] with [*] items.

Do multi-line [code] and [quote] blocks work?+

Multi-line [code] and [quote] blocks are supported. If one wasn't converted, check that it has a matching closing tag.

What happens to HTML already in my text?+

It is escaped, so <b> becomes &lt;b&gt; and shows as text instead of being treated as markup.

Does it show a rendered preview?+

Yes. Click Preview to see the HTML rendered in a sandboxed frame where no scripts can run.

Related tools