Skip to content
UniKit

HTML to UBB

Map real tags to UBB plain text: `b/strong` becomes `[b]`, `a` becomes `[url=]…[/url]`, `img` becomes `[img]`, `br` becomes a newline, `ul/li` become `[list][*]`, `code` becomes `[code]` and `h1..h6` become `[size]`. Unknown tags keep their attributes by default, or lose them if you prefer.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

HTML source

Result

The result can be copied directly.

Paste HTML to see the UBB markup

Characters: 0 · Lines: 0 · Tags converted: 0 · Tags kept: 0

What this tool does

  • Convert page copy to UBB before posting on forums such as Discuz.
  • See which tags have a UBB mapping and which are only kept verbatim.
  • Downgrade rich text to plain markup for archiving.

Example

Input

<b>x</b><a href="/y">Y</a><br>z

Output

[b]x[/b][url=/y]Y[/url]
z

Real tag mapping; unknown tags keep their markup and attributes, entities are decoded here.

Frequently asked questions

What happens to unknown tags?

By default they are kept with their attributes; uncheck to keep only the content. Both cases are recorded in mappings.

What does `br` produce?

A real newline by default; check the bracket-tag switch to emit the UBB break instead, which suits inputs that do not allow line breaks.

How are entities handled?

UBB is a plain-text format, so entities are decoded here: an escaped ampersand becomes a real one.

Are tables supported?

No. `tr` becomes a newline and `td/th` become tabs as a text approximation; the table structure is not preserved.

Keywords:html2ubbDiscuzubbdeveloper

Related tools