UtilitySansar
Văn bản

BBCode to HTML

Convert classic forum BBCode like [b], [url], [img], [quote], and [code] into clean, safe HTML. Handles nested tags and lists.

Tóm tắt công cụ

Công cụ này nhận đầu vào có cấu trúc và trả về đầu ra xác định ngay trong trình duyệt, không tải lên máy chủ.

Tên công cụ
BBCode to HTML
Mục đích đầu vào
Cung cấp nội dung nguồn để biến đổi, xác thực hoặc phân tích.
Mục đích đầu ra
Nhận đầu ra chuẩn hóa thuận tiện để sao chép, tái sử dụng hoặc gỡ lỗi.
Đầu vào ví dụ
[b]Hello[/b], visit [url=https://example.com]Example[/url]!
Đầu ra ví dụ
<strong>Hello</strong>, visit <a href="https://example.com">Example</a>!

Preview

Rendered HTML, sanitized.

Welcome


This text is bold, italic, and underlined.

AliceForums never die — they just become BBCode tutorials.


A bullet list:
  • First item
  • Second item with a link
  • Third item



function hi(name) {
  return "Hello, " + name;
}
Raw HTML in your input is escaped — only known BBCode tags become real HTML.

Giới thiệu công cụ

Convert classic forum BBCode like [b], [url], [img], [quote], and [code] into clean, safe HTML. Handles nested tags and lists.

Tổng quan công cụ

BBCode is the markup language used by phpBB, vBulletin, and similar forum software. This tool maps the most common BBCode tags to their HTML equivalents — bold, italic, underline, links, images, lists, code blocks, and quotes — while escaping any raw HTML in the input so the output is safe to render. Color and size tags are converted to inline styles. Unsupported or malformed tags are left as plain text instead of producing broken HTML.

Trường hợp sử dụng

  • Migrate forum posts from phpBB or vBulletin to a modern HTML CMS.
  • Render BBCode pasted into a chat or feedback widget.
  • Pre-process legacy BBCode archives for indexing.

Ví dụ đầu vào/đầu ra

Mục đích đầu vào
[b]Hello[/b], visit [url=https://example.com]Example[/url]!
Mục đích đầu ra
<strong>Hello</strong>, visit <a href="https://example.com">Example</a>!

Câu hỏi thường gặp

Is the output safe to drop into a page?+
Yes. Raw HTML in the input is escaped, and only a known allow-list of tags is converted to real HTML.
Which tags are supported?+
b, i, u, s, url, img, color, size, quote, code, list, *, h1–h6, center, and br. Unknown tags are left as plain text.
Does it handle nested tags?+
Yes. Inline tags can be nested inside one another and inside block tags like [quote] and [list].

Khám phá thêm công cụ

Khám phá các tiện ích liên quan trong danh mục Văn bản bên dưới.

Xem tất cả Văn bản

Công cụ liên quan

Tiện ích được tuyển chọn có thể hữu ích cho bạn