BBCode to HTML Converter and Viewer

Paste forum BBCode to get clean HTML and see it rendered, or switch direction to convert HTML into BBCode. Raw HTML in the input is escaped and javascript: links are blocked, so the output is safe to embed. Runs in your browser.

Live preview (BBCode viewer)

What you can do here

Links: ?mode=bbcode-html (default) and ?mode=html-bbcode.

Supported BBCode tags

BBCodeHTML
[b] [i] [u] [s]<strong> <em> <u> <s>
[url]https://…[/url], [url=https://…]text[/url]<a href="…" rel="nofollow">
[email]a@b.c[/email]<a href="mailto:…">
[img]https://…[/img], [img=200x100]<img src="…" alt="">
[quote], [quote=Name]<blockquote> with a <cite>
[code]<pre><code>; tags inside are not parsed
[list], [list=1], [*]<ul>, <ol>, <li>
[color=red], [size=18], [font=Arial]<span style="…">
[center] [left] [right]<div style="text-align:…">
[table] [tr] [th] [td]<table> <tr> <th> <td>
[sub] [sup] [hr]<sub> <sup> <hr>

Line breaks become <br>. Unknown tags are left as text, so nothing is silently lost.

Worked example

[quote=Ada]Try [b]this[/b] [url=https://example.com]link[/url][/quote]

becomes

<blockquote><cite>Ada wrote:</cite>Try <strong>this</strong> <a href="https://example.com" rel="nofollow">link</a></blockquote>

Common questions

How do I convert BBCode to HTML?

Paste the BBCode into the left box. The HTML appears on the right as you type and the rendered result is shown underneath. Copy the HTML into your page or CMS.

Can I just preview BBCode without converting?

Yes. The preview panel is a BBCode viewer: it shows the post the way a forum would render it, so you can check formatting, links and images before posting.

Is the generated HTML safe to put on my site?

Any HTML typed into the BBCode is escaped, links are limited to http, https, mailto and relative URLs, and colors, sizes and fonts are validated before they reach a style attribute. Links get rel="nofollow".

Can I convert HTML to BBCode?

Yes, choose HTML → BBCode. Bold, italics, underline, strike, links, images, quotes, code, lists, headings (as bold) and line breaks are converted; other tags are dropped and their text kept.

Does it handle nested tags?

Yes. Quotes inside quotes, lists inside quotes and formatting inside links are all converted; mismatched tags are left as plain text.

Is my text uploaded?

No. Conversion and preview run in your browser.