BBCode to HTML Converter
Paste BBCode text and get clean HTML output you can use anywhere — copy it to the clipboard or download as an .html file.
Last updated: May 26, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is BBCode to HTML Converter?
BBCode (Bulletin Board Code) is a lightweight markup language used in online forums, bulletin boards, and community platforms. Tags like `[b]`, `[i]`, `[url]`, and `[quote]` apply formatting that the forum software then renders as HTML when displaying posts.
This converter parses BBCode client-side and outputs the equivalent HTML. It handles the most common tags: text formatting (`[b]`, `[i]`, `[u]`, `[s]`), links (`[url]`), images (`[img]`), quoted blocks (`[quote]`), code blocks (`[code]`, `[pre]`), ordered and unordered lists, inline colour (`[color]`), and font size (`[size]`).
All URL values in `[url]` and `[img]` tags are sanitised to prevent `javascript:` protocol injection. Newlines in the BBCode are converted to `<br>` in the HTML output, matching the way most forum engines render posts.
How to Use BBCode to HTML Converter
Paste your BBCode text into the input panel on the left.
The HTML equivalent appears instantly on the right.
Click Copy to copy the HTML, or Download to save it as converted.html.
Paste the HTML wherever you need it — a CMS, an email template, or a static page.
Common Use Cases
- Migrating old forum posts from a BBCode-based board to a CMS that uses HTML.
- Extracting formatted content from phpBB, vBulletin, or XenForo for use in an email newsletter.
- Converting BBCode-formatted user documentation to clean HTML for a knowledge base.
- Testing how BBCode renders before posting to a live forum.
- Building a tool that accepts BBCode input and needs to output HTML.
Example Input and Output
A short BBCode snippet with a bold title, italic text, and a URL converts to valid HTML.
[b]Hello, World![/b]
[i]Click here:[/i] [url=https://example.com]Example[/url]<strong>Hello, World!</strong><br>
<em>Click here:</em> <a href="https://example.com" rel="noopener noreferrer">Example</a>Privacy
All conversion happens locally in your browser. No text is sent to a server.
Nested tags
Most tags can be nested — for example [color=blue][b]blue bold[/b][/color] works correctly. Very deeply nested or unclosed tags may produce unexpected output, just as they would in a real forum engine.
List syntax
Use [list][*]item[/list] for unordered lists and [list=1][*]item[/list] for ordered lists. Each [*] marker starts a new list item.
Frequently Asked Questions
Which BBCode tags are supported?
Bold [b], italic [i], underline [u], strikethrough [s], subscript [sub], superscript [sup], colour [color], size [size], link [url], image [img], quote [quote], code [code], preformatted [pre], unordered list [list], ordered list [list=1], horizontal rule [hr], and text alignment [center] [left] [right].
Are URLs sanitised?
Yes. Any URL in a [url] or [img] tag that starts with javascript: is replaced with # to prevent XSS. Only http and https URLs pass through unchanged.
How are newlines handled?
Each newline in the BBCode input becomes a <br> tag in the HTML output, matching the behaviour of most forum engines. Content inside [code] and [pre] blocks is exempt — newlines there are preserved as-is.
Can I convert HTML back to BBCode?
Not with this tool. Converting HTML back to BBCode requires a separate parser — check the related tools section.
Does this tool send my text anywhere?
No. Parsing and conversion run entirely in your browser. Nothing is uploaded.
Related Tools
BBCode Editor
Write BBCode with a formatting toolbar and see a live rendered preview. Supports bold, italic, links, images, quotes, code blocks, lists, and more.
BBCode Viewer
Paste BBCode and instantly see how it renders as HTML. Toggle between the visual preview and the raw HTML source. Great for checking posts before submitting.
HTML to Markdown Converter
Convert HTML into clean, readable Markdown — preserving headings, links, images, lists, and tables.
HTML Beautifier
Format and beautify minified or messy HTML code.
Markdown to HTML Converter
Convert Markdown to clean, semantic HTML with live preview — GFM tables and task lists, heading IDs, a table of contents generator, four output modes, and HTML sanitization.
HTML to JSX Converter
Convert HTML to JSX for React — converts class to className, for to htmlFor, self-closes void elements, and converts inline styles to JSX objects.

