Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

HTML to BBCode Converter

Paste HTML and instantly convert it to BBCode forum markup — formatting, links, images, lists and more

Your files never leave your browser
HTML Input0 chars, 0 lines
BBCode Output0 chars, 0 lines
Ready·

Paste your HTML, hit Convert, and get forum-ready BBCode with all your bold, italic, links, images, and lists mapped to the right square-bracket tags. No more hand-swapping <b> for [b] or rebuilding nested lists from scratch.

The converter handles messy, real-world markup — inline styles, nested elements, tables — because it parses through the browser’s own DOMParser rather than regex. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste HTML
➔
Parse DOM Tree
➔
Output BBCode

Your HTML goes through the browser’s DOMParser, which builds a proper document tree — the same way a browser reads a web page. The converter then walks each node, checks the tag name, and swaps it for the matching BBCode tag. Inline styles like color and font-size on <span> elements get picked up too. The result is ready to paste into any forum.

Examples

Basic text formatting

Converting a short formatted paragraph for a forum reply.

INPUT
<p><b>Warning:</b> Do <i>not</i> skip this step.</p>
OUTPUT
[b]Warning:[/b] Do [i]not[/i] skip this step.

Link with an image

Sharing a clickable thumbnail on a photography forum.

INPUT
<a href="https://example.com"><img src="photo.jpg" alt="Sunset"></a>
OUTPUT
[url=https://example.com][img]photo.jpg[/img][/url]

Nested list from documentation

You copied a requirements list from a wiki page and need to post it on a support forum. The nested structure needs to survive the conversion.

INPUT
<ul> <li>Install Node 18+</li> <li>Clone the repo</li> <li>Run <code>npm install</code></li> </ul>
OUTPUT
[list] [*]Install Node 18+ [*]Clone the repo [*]Run [code]npm install[/code] [/list]

Who Uses This

🗣️ Forum moderators

Reformatting announcements and pinned posts from HTML drafts into BBCode for vBulletin, phpBB, or SMF boards.

💻 Developers

Posting code snippets and formatted changelogs from HTML docs into developer community forums.

🎩 Content creators

Cross-posting blog articles to fan forums or gaming communities that run on BBCode-based platforms.

📚 Technical writers

Converting structured documentation into forum-friendly markup for support boards and knowledge bases.

Common Mistakes

Pasting rendered text instead of HTML source

If you copy text from a web page (the visual output), you get plain text — not HTML tags. Right-click and “View Source” or “Inspect Element” to grab the actual markup. Otherwise the converter has nothing to convert.

Expecting CSS classes to carry over

BBCode doesn’t support CSS classes. A <div class="highlight"> won’t produce any styling in BBCode output. Only inline styles (like color and font-size on span elements) and semantic tags (b, i, u) translate. Strip your classes or convert them to inline styles first.

Assuming all forums support the same BBCode tags

Tags like [table], [code], and [quote] aren’t universal. Some older boards only support basic formatting. Check your target forum’s BBCode documentation before posting. If [table] doesn’t work there, you might need to convert your table into plain-text columns instead.

Technical Details

Frequently Asked Questions

What is BBCode and where is it used?

BBCode stands for Bulletin Board Code. It’s a markup language used on forums like phpBB, vBulletin, XenForo, and SMF. Instead of angle brackets like HTML, it uses square brackets — [b]bold[/b] instead of <b>bold</b>. Most gaming forums, hobbyist communities, and legacy support boards still run on it.

Can I convert BBCode back to HTML?

This particular tool goes one direction: HTML to BBCode. For the reverse, you’d need a BBCode-to-HTML converter. The tag structures are similar enough that round-tripping is possible, but some formatting details (like exact font sizes) may not survive both conversions.

Does it handle tables?

Yes. HTML <table>, <tr>, <td>, and <th> tags get converted to [table], [tr], [td], and [th] BBCode tags. Just keep in mind that not every forum software supports BBCode tables. XenForo does, phpBB needs a plugin, and some smaller boards don’t support them at all.

Is my HTML data safe?

Completely. The conversion runs inside your browser using JavaScript. Nothing gets uploaded to a server. You can disconnect from the internet and the tool still works — that’s the simplest proof that your data stays local.

Why does my output look different on the forum?

Forums render BBCode with their own stylesheets. Font sizes, colors, and spacing will look different from your original HTML page. That is normal. The structure and content are preserved — just the visual styling depends on the forum’s theme. Preview your post before publishing to catch anything that looks off.

Share: