BBCode Link Generator
Generate BBCode links with bold, italic, underline, and color formatting. Copy-ready code for forums, signatures, and bulletin boards.
About
BBCode (Bulletin Board Code) remains the primary markup language for phpBB, vBulletin, SMF, XenForo, and hundreds of legacy forum platforms that reject raw HTML for security reasons. A malformed [url] tag - a missing closing bracket, incorrect nesting order, or an unescaped character - renders your link dead. On high-traffic forums, broken signature links lose referral traffic permanently because moderators rarely notify you. This tool generates syntactically correct BBCode with proper tag nesting: [url] wraps the outermost layer, followed by [color], then [b], [i], and [u] in that order. It validates your URL against RFC 3986 structure before output.
Limitation: color rendering depends on the target forum's CSS whitelist. Some platforms strip [color] tags entirely or restrict allowed hex values. Test your output on the destination board before bulk-posting. Pro tip: many forums silently convert [url] tags with non-HTTP protocols to plain text - stick to https:// links.
Formulas
The generator constructs BBCode by nesting formatting tags around the anchor text in a strict hierarchy. Incorrect nesting order causes rendering failures on most parsers.
The nesting order follows the BBCode parsing specification where outermost tags are processed first:
Where URL is the validated destination address conforming to RFC 3986 structure. text is the user-provided anchor string, sanitized to remove characters that conflict with BBCode bracket syntax. Each tag in the chain is only applied when its corresponding formatting option is enabled. If no anchor text is provided, the generator falls back to bare URL mode: [url]https://example.com[/url].
Reference Data
| BBCode Tag | Syntax | Description | Platform Support |
|---|---|---|---|
| [url] | [url=https://example.com]text[/url] | Hyperlink with anchor text | Universal |
| [url] (bare) | [url]https://example.com[/url] | Hyperlink showing raw URL | Universal |
| [b] | [b]text[/b] | Bold text | Universal |
| [i] | [i]text[/i] | Italic text | Universal |
| [u] | [u]text[/u] | Underlined text | Universal |
| [color] | [color=#FF0000]text[/color] | Colored text (hex or name) | Most platforms |
| [size] | [size=14]text[/size] | Font size (px or relative) | Most platforms |
| [img] | [img]url[/img] | Embedded image | Universal |
| [quote] | [quote=user]text[/quote] | Block quote with attribution | Universal |
| [code] | [code]text[/code] | Monospace code block | Universal |
| [list] | [list][*]item[/list] | Bulleted list | Universal |
| [s] | [s]text[/s] | Strikethrough | phpBB, vBulletin, XenForo |
| [center] | [center]text[/center] | Centered text | vBulletin, SMF |
| [email] | [email][email protected][/email] | Mailto link | phpBB, vBulletin |
| [font] | [font=Arial]text[/font] | Font family change | vBulletin, XenForo |
| [spoiler] | [spoiler]text[/spoiler] | Hidden content toggle | XenForo, Discourse, SMF |
| [youtube] | [youtube]video_id[/youtube] | Embedded YouTube video | XenForo, some phpBB |
| [table] | [table][tr][td]cell[/td][/tr][/table] | Table structure | XenForo, Discourse |
| [hr] | [hr] | Horizontal rule | vBulletin, SMF |
| [indent] | [indent]text[/indent] | Text indentation | vBulletin |
| [sup] | [sup]text[/sup] | Superscript | XenForo, Discourse |