Bbcode HTML Converter
Fast, accurate and free online bbcode html converter tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Rate this tool:
Related tools
Other tools you may find usefulBBCode ↔ HTML converter – forum syntax to website code
BBCode (Bulletin Board Code) is a simplified markup language used on internet forums (phpBB, vBulletin, IPB, XenForo). The tool converts BBCode to HTML and back - useful when migrating forum content, importing posts to CMS, or converting templates.
Basic BBCode tags
[b]text[/b] →text. [i]text[/i] →text. [u]text[/u] →text. [s]text[/s] →text. [color=red]text[/color] →. [size=14]text[/size] →. [font=Arial]text[/font] →.
Links and Media
[url]https://example.com[/url] →. [url=https://ex.com]Text[/url] →Text. [img]https://ex.com/img.jpg[/img] →. [img width=200]...[/img] →
. [video]URL[/video] → embed (YouTube, Vimeo). [email][email protected][/email] → mailto: link.
Layouts and formatting
[quote]text[/quote] →
. [quote=John]...[/quote] →. [code]code[/code] →. [code=php]php[/code] → with syntax highlighting (if the parser supports it). [list][*]pos1[*]pos2[/list] →. [list=1][*]...[/list] →
- . [table][tr][td]...[/table] → HTML table.
BBCode dialects - differences between forums
BBCode is not a standard - each forum may have different tags. phpBB: standard + [attachment], [flash]. vBulletin: [noparse], [highlight]. XenForo: [MEDIA], [SPOILER], [USER]. Discourse (modern): Markdown instead of BBCode. The tool supports a common subset of all major dialects.
FAQ
Why do forums use BBCode and not HTML?
Security: HTML pasted by the user = risk of XSS (Cross-Site Scripting). BBCode is server-side parsed into secure HTML with whitelist tags. Simplicity: BBCode is easier to learn than HTML. History: BBCode introduced phpBB around 2000.
How to safely convert BBCode to HTML?
Sanitization: use DOMPurify (JS) or html_special_chars + whitelist (PHP) after conversion. Never insert raw HTML from the user. Whitelist of allowed HTML tags:, , , (with restrictions),
,
. Remove onclick, onerror, style from javascript:.
How does BBCode handle nested citations?
[quote][quote=Jan]...[/quote] Reply[/quote] - many forums support nested citations up to N levels. HTML:
. Appearance: indents or colored borders (CSS).......
Is BBCode used outside forums?
MediaWiki (Wikipedia): custom syntax (similar to BBCode). Reddit: Markdown. Stack Overflow: Markdown + LaTeX. Discord: Markdown Simplified. Slack: Markdown. BBCode is rather legacy today - new platforms prefer Markdown.
How to migrate forum content from BBCode to Markdown?
BBCode → HTML → Markdown (2-step conversion). The tool performs step 1. Step 2: Use "HTML to Markdown Converter". Or directly: [b] → **, [i] → *, [url=X]Y[/url] → [Y](X), [code] → ``` (backticks). Python: bbcode + markdownify.
Related tools: HTML to Markdown converter, HTML validator and JSON formatter.