What Is BBCode? Tag List for Colors, Images and Links

November 11, 2026 · 11 min read

What Is BBCode? Tag List for Colors, Images, Links, Spoilers, and More

What is BBCode? It's Bulletin Board Code, a lightweight markup language that forums use to format posts. You wrap text in square-bracket tags such as [b]bold[/b], and the forum converts them to HTML when it shows your post. Below are the exact tags for colors, images, links, strikethrough and spoilers on phpBB, XenForo and Steam.

What Is BBCode Used For, and Why Not Plain HTML?

The name is short for Bulletin Board Code, and Wikipedia's BBCode article dates it to 1998. So what is a BBCode tag? It's a keyword in square brackets that the forum translates into HTML before the page reaches readers. You never write HTML yourself. You type [i]like this[/i], and other members see italic text.

Why not let people post HTML directly? Because this way the forum stays in charge of the page. It accepts a short list of bracket tags and translates only those. Admins pick which tags are switched on, and a tag the board doesn't know usually shows up as plain text.

phpBB's BBCode help page adds two more controls. The administrator decides whether BBCode works on the board at all, and you can turn it off for a single post from the posting form. Many forum themes also show formatting buttons above the reply box that insert the tags for you.

You'll meet BBCode in forum software such as phpBB and XenForo, in Steam's comments, reviews and discussions, and even in game engines. Godot's RichTextLabel node, for example, formats in-game text with tags like [color] and [url].

There's no official BBCode standard. Each platform implements its own set, so the help page of the board you're posting on is the final word. The tables below show where the three big platforms in this guide agree and where they split.

BBCode Tag List for Text, Quotes, Code and Lists

Bold, italic and underline work the same way on all three platforms. Quotes, numbered lists, headings and tables are where the dialects start to differ. XenForo's help page writes its tags in capitals, so they're shown that way here.

FormattingphpBBXenForoSteam
Bold[b]text[/b][B]text[/B][b]text[/b]
Italic[i]text[/i][I]text[/I][i]text[/i]
Underline[u]text[/u][U]text[/U][u]text[/u]
Quote with a name[quote="Sam"]text[/quote][QUOTE=Sam]text[/QUOTE][quote=Sam]text[/quote]
Code block[code]text[/code][CODE]text[/CODE][code]text[/code]
Bulleted list[list] with [*] items[LIST] with [*] items[list] with [*] items
Numbered list[list=1][LIST=1][olist]
Headingsnone by default[HEADING=1] to [HEADING=3][h1] to [h3]
Tablenone by default[TABLE], [TR], [TH], [TD][table], [tr], [th], [td]
Center textnone by default[CENTER], plus [LEFT] and [RIGHT]none
Show tags literallynone by default[PLAIN][noparse]

On phpBB, the quotation marks around the quoted name aren't optional, and the forum adds a "Sam wrote:" line above the text. Steam labels the same block "Originally posted by Sam:". A numbered list looks like this:

[list=1]
[*]Back up the save folder
[*]Install the patch
[*]Restore the save folder
[/list]

On phpBB and XenForo, that renders as a numbered list of three steps. Steam gets the same result with [olist] and [/olist] in place of [list=1] and [/list]. phpBB also accepts [list=a] for letters and [list=i] for Roman numerals.

BBCode Colors: Named Colors, Hex Codes and Sizes

You set BBCode colors with one tag that takes the color as its value. You can give a name like red or a hex code like #FF0000, and both forms work on phpBB and XenForo:

[color=red]Server is down[/color]
[color=#1E90FF]Patch notes below[/color]

The first line renders in red and the second in a bright blue. Wikipedia notes that some boards want the hex code without the #, so try that if your color prints as plain text. For BBCode colours, use the American spelling even if you write colour everywhere else, because phpBB and XenForo document only [color]. Steam's formatting help lists no color tag at all.

Size is less consistent. phpBB's help recommends a percentage for [size=], from 20 (very small) to 200 (very large) by default. XenForo's help uses a 1 to 7 scale, from [SIZE=1] for small to [SIZE=7] for big, and adds [FONT=Courier New] for typefaces.

You can stack tags, as long as you close them in reverse order:

[size=150][color=red][b]Read before posting[/b][/color][/size]

On phpBB that gives large, red, bold text. Closing them out of order is a mistake: phpBB's help gives [b][u]This is wrong[/b][/u] as its example of incorrect nesting.

Markdown has no color syntax at all. If you're moving a post to a Markdown site, read our guide to Markdown text color workarounds.

How Do I Add an Image in BBCode?

The BBCode image tag is [img]. Put the image's web address between the opening and closing tags:

[img]https://example.com/screenshots/boss-fight.png[/img]

The forum shows the picture inline where the tag sits. The catch is that BBCode images have to be online already. phpBB's help is blunt about it: a file that exists only on your computer won't display. Upload it to an image host first, or use the forum's attachment feature.

To make an image clickable, wrap it in a link. Close the image tag before the link tag:

[url=https://example.com/gallery][img]https://example.com/thumb.png[/img][/url]

Size and alt-text options are forum-specific. Wikipedia shows an [img alt="..."] form, but phpBB's stock help documents only the plain [img] tag, so test any attribute in your forum's preview first. Uploaded files use different tags: [attachment=] on phpBB when the admin has enabled attachments, and [ATTACH] on XenForo. A button usually inserts those for you.

On XenForo, BBCode for images uses the same pattern with [IMG]. Steam's formatting help lists no image tag for comments. The Markdown version is ![alt text](url), which our Markdown image guide covers. In HTML, a clickable picture is an <img> inside an <a>, as our guide to image links in HTML explains.

BBCode Links With and Without Custom Text

Links come in two forms. Wrap a bare address to show the URL itself, or put the address after an equals sign to show your own text:

[url]https://store.steampowered.com/[/url]
[url=https://store.steampowered.com/]Steam store[/url]

The first line renders the full address as a link. The second shows the words Steam store as clickable text. Both work on phpBB and XenForo, and Steam's help documents the second form.

Email addresses get their own tag: [email]you@example.com[/email]. XenForo also accepts [EMAIL=you@example.com]Email me[/EMAIL] for custom text. phpBB adds Magic Links, which turn a typed www. address or full URL into a link with no tags at all.

In Markdown, the same link is [Steam store](https://store.steampowered.com/). Our guide to Markdown links explains that syntax and its variants.

How to Strikethrough in BBCode on Each Forum

BBCode strikethrough is the tag that varies most between platforms. Here's what each one expects:

PlatformStrikethrough tag
XenForo[S]old price[/S]
Steam[strike]old price[/strike]
Godot RichTextLabel[s]old price[/s]
phpBB (stock)none, unless an admin adds a custom tag

If [s] prints as plain text on a phpBB board, the admin hasn't added a strikethrough tag. Admins can create one under Custom BBCodes and choose its name, so look for a strikethrough button above the reply box. Markdown uses ~~old price~~ instead, as our Markdown strikethrough guide explains.

BBCode Spoiler Tags on phpBB, XenForo and Steam

A spoiler tag hides text until the reader chooses to reveal it. XenForo has the fullest set, Steam has one tag, and stock phpBB has none.

[SPOILER]The butler did it.[/SPOILER]
[SPOILER=Ending]The butler did it.[/SPOILER]
You meet the [ISPOILER]final boss[/ISPOILER] in chapter 9.

On XenForo, the first line shows a Spoiler button that the reader clicks to reveal the text. The second puts your title on that button, and XenForo's BB code help writes the title without quotation marks. [ISPOILER] hides a word or phrase inside a sentence.

Steam's spoiler BBCode is simpler: [spoiler]text[/spoiler], and Steam's formatting help shows no title option. On phpBB, a spoiler exists only if an admin created one under Custom BBCodes. The tag name and title support vary by board, so copy the syntax from the board's own button or help page.

Chat apps use Markdown-style spoilers instead. Discord wraps the text in double pipes, as our Discord formatting cheat sheet shows. Reddit uses its own >! and !< markers, covered in the Reddit formatting guide.

Converting Markdown to BBCode and Back

BBCode and Markdown side by side

Before converting, it helps to know what maps cleanly. Markdown is a different kind of markup language that uses plain-text symbols instead of tags. Here's the mapping for the tags above:

ElementBBCodeMarkdown
Bold[b]text[/b]**text**
Italic[i]text[/i]*text*
Strikethrough[s]text[/s] or [strike]text[/strike]~~text~~
Link[url=URL]text[/url][text](URL)
Image[img]URL[/img]![alt](URL)
Quote[quote]text[/quote]a line starting with >
Code[code]text[/code]a fenced code block
Table[table] with [tr] rowsa pipe table
Color[color=red]text[/color]none
Spoiler[spoiler]text[/spoiler]none in standard Markdown

We prefer Markdown for anything outside a forum, because it reads cleanly even before it's rendered. BBCode is still the right choice on boards that expect it. Our Markdown cheat sheet has the full Markdown side.

Using the markup converter

The markup converter turns Markdown into BBCode and BBCode back into Markdown. It runs in your browser and has no usage limit. Set From to Markdown and To to BBCode, paste your text, and copy the output. Here's a short Markdown draft:

**Patch 1.2 is live.** Read the [notes](https://example.com/notes) first.

~~Old save files~~ still load.

The converter turns it into [b] tags, a [url=...] link and an [s] strikethrough, ready to paste into a phpBB or XenForo reply.

Starting from a web page instead? Run the HTML through HTML to Markdown first, then convert that Markdown. Our overview of Markdown converters covers other formats, such as PDF and Word. To map the tags directly, our HTML to BBCode guide has the full table and a script.

Know the limits. The converter writes [s] for strikethrough, so swap it for [strike] by hand before posting on Steam. Headings become [size] plus [b] tags, since many forums have no heading tag. In the other direction, color, size, font and spoiler tags are dropped and only their text survives, because Markdown has no equivalent. Image alt text is lost on the way to BBCode.

The converter changes text but doesn't preview BBCode, and neither does our editor, which renders Markdown. Check the final post with your forum's own preview. That's the most reliable BBCode tester you'll find, because it uses the board's real tag set.

Quick Answers About BBCode Tags

So, what is BBCode in one line? It's a small set of square-bracket tags that forums turn into formatting, with different dialects on phpBB, XenForo and Steam. Keep this tag list handy, check your board's help page for anything unusual, and preview before you post. If you draft in Markdown first, the markup converter turns that draft into BBCode for you.