Skip to content
TextArray
100% local

Spoiler tag wrapper

Wrap text in Discord, Reddit, BBCode or HTML spoiler markup in one paste.

Input
Output

Spoiler tag wrapper

Every platform hides spoilers differently: Discord wants ||double pipes||, Reddit wants >!angled bangs!<, classic forums want [spoiler] BBCode, and on the open web the honest way is a <details> element the reader clicks to reveal. Typing those markers around every sentence of an episode discussion gets old fast — paste the text here, pick the platform, and every line comes back wrapped.

The scope option decides the granularity. Each line is the chat-friendly default: blank lines survive unwrapped, so the rhythm of the message stays. Each paragraph wraps blank-line-separated blocks whole, which reads better in longer posts. Whole text produces a single spoiler covering everything — one click to reveal the lot.

The formats follow each platform's real rules. Discord's || markers span multiple lines, so any scope works there. Reddit's >!…!< is strictly inline — a spoiler cannot cross a line break, which is exactly why the per-line scope exists and is the default. The BBCode variant fits phpBB, XenForo and most classic forums, and the HTML variant emits a <details><summary>Spoiler</summary> block that works on any website without JavaScript.

Typical uses: episode threads and book club posts, puzzle answers and quiz solutions, patch notes with story beats, or D&D session recaps where half the table hasn't caught up. Everything runs locally in your browser — the spoilers you are protecting never leave your device.

FAQ

Why does my Reddit spoiler break across lines?
Reddit's >!…!< markup is inline-only — it cannot cross a line break. Keep the scope on each line, so every line carries its own tags, and multi-line spoilers render correctly.
Which platforms does each format cover?
Discord (||…||) also works in some Markdown chat apps. Reddit (>!…!<) is Reddit-specific. [spoiler] BBCode covers phpBB, XenForo, vBulletin and most classic forums. The <details> variant works on any web page and in GitHub comments.
What happens to blank lines?
In line scope they pass through untouched, keeping the message shape. In paragraph scope they act as the paragraph boundaries. In whole scope they end up inside the single spoiler.
Can I unwrap spoilers with this tool?
Not directly — the wrap is one-way. To strip the markers again, run the output through find and replace, removing ||, >!, !< or the [spoiler] tags.
Is my text uploaded anywhere?
No. The wrapping runs entirely in your browser and your text never leaves your device.