HTML to BBCode Converter
phpBB, vBulletin, Invision Board and older MyBB installs still disallow HTML in posts but accept BBCode, the [b], [url] and [img] bracketed tags invented for Ultimate Bulletin Board in 1998. Paste HTML here and this converter rewrites each supported tag into BBCode equivalents, keeping formatting intact for a forum repost or archive export.
How to convert HTML to BBCode
-
1
Paste HTML
Any size from a rich-text snippet to a full forum post exported as HTML.
-
2
Run the conversion
Click Convert and every supported tag is rewritten to BBCode.
-
3
Review the output
Tags with no BBCode equivalent are stripped but their inner text is kept, so nothing is lost.
-
4
Copy the BBCode
Paste into the forum editor in plain-text mode.
HTML to BBCode tag mapping
The converter supports the most common forum tags and turns everything else into plain text.
Basic mapping
| HTML | BBCode |
|---|---|
<br> |
line break |
<b> or <strong> |
[b]...[/b] |
<i> or <em> |
[i]...[/i] |
<u> |
[u]...[/u] |
<a href="url">text</a> |
[url=url]text[/url] |
<img src="url"> |
[img]url[/img] |
<blockquote> |
[quote]...[/quote] |
<code> |
[code]...[/code] |
<li> |
[*] |
</p> </div> </h1> to </h6> |
blank line |
What happens to other tags
<ul>and<ol>: the list wrappers are dropped and each<li>becomes its own[*]bullet line.<script>,<style>,<iframe>: the tags are removed, any text inside them is kept.<div>,<section>,<details>and similar containers: the tags are stripped and the inner text is kept.- SVG and MathML: not representable in BBCode, the inner text is kept.
- Inline styles and attributes: not carried over, the styling is lost.
Best practice
- Pre-clean the HTML with a formatter first to avoid nested tag confusion.
- Test a short snippet in the forum’s preview before bulk-pasting long content.
- Verify links, some forums disable URL auto-linking outside
[url]tags.
Frequently Asked Questions
BBCode has a tiny vocabulary compared to HTML. Tags like <div>, <section> or <details> have no BBCode equivalent. The converter strips them and keeps the inner content so no information is lost.
No. BBCode has no direct equivalent for most CSS properties, so styles are dropped and the text is kept. If you need colors or sizes, add [color] or [size] tags manually in the forum editor.
Yes. <b><i>text</i></b> becomes [b][i]text[/i][/b]. Nesting is preserved as long as the forum dialect accepts it, some block nested [url] inside [img], for example.
Not in this tool, use the BBCode to HTML converter for the reverse direction. Round-tripping is lossy because HTML has far more tags than BBCode.
Related Tools
ASCII Table Reference
Full ASCII table from 0 to 127 with decimal, hex, octal, binary, standard names and HTML numeric-reference notation, including NUL, LF and DEL.
Color Palette Generator
Generate monochromatic, analogous, complementary, triadic or tetradic color palettes from a base HEX color and export copy-ready CSS variables.
HTML Character Reference
Searchable list of HTML entities, their named and numeric codes, and a one-click copy for special characters and symbols.
HEX Color Picker
Pick or enter a HEX colour and get RGB, HSL, approximate CMYK, relative luminance and contrast ratios against white and black.
FPS Counter
Measure browser FPS with requestAnimationFrame, smoothing, min/max frame rate, warnings and an optional graph. Runs locally with no upload or API.
JSON Formatter
Paste JSON to pretty-print with 2 or 4 spaces, minify it to compact output, or run a quick syntax check before copying the result.
Tool available in other languages
- Chuyển đổi HTML sang BBCode [VI]
- Konverterare från HTML till BBCode [SV]
- Convertisseur HTML en BBCode [FR]
- Conversor de HTML para BBCode [PT]
- ตัวแปลง HTML เป็น BBCode [TH]
- HTMLからBBCode変換ツール [JA]
- Convertidor de HTML a BBCode [ES]
- HTML naar BBCode-converter [NL]
- HTML에서 BBCode로 변환하기 [KO]
- محوّل HTML إلى BBCode [AR]
- HTML zu BBCode Konverter [DE]
- Konverter HTML ke BBCode [ID]
- Konwerter HTML na BBCode [PL]
- Convertitore da HTML a BBCode [IT]
- Конвертер HTML в BBCode [RU]
- HTML'den BBCode'ye Dönüştürücü [TR]
- HTML到BBCode转换器 [ZH]