How Discord Embed Builder Works
Discord Embed Color Integer Encoding
color_int = parseInt(hex_color.replace('#', ''), 16)
// Example: #10B981 -> 1096065
Rich embeds give Discord announcements, support tickets, and bot logs clean visual hierarchy with a colored left accent bar, structured inline fields, thumbnails, and footer timestamps. Writing raw JSON by hand, however, frequently breaks webhook requests due to stray commas or invalid 24-bit integer color values.
This builder keeps your preview synchronized in real time alongside valid Discord Webhook JSON and ready-to-paste Discord.js EmbedBuilder syntax. Add up to 25 custom fields, toggle inline column layout, attach image/thumbnail URLs, and inspect character limits safely before shipping to production.
All previews render strictly via safe DOM text nodes inside your browser—nothing is transmitted to external servers or stored remotely.
Worked Example: Converting Hex #10B981 to Discord's JSON Color Integer
- Strip the # symbol from #10B981 leaving hexadecimal 10B981.
- Convert base-16 to decimal: (16 * 65536) + (185 * 256) + 129 = 1,096,065.
- Insert "color": 1096065 inside the embed object alongside title, description, and fields.
Result: Valid Discord Webhook payload ready for POSTing or pasting into bot code.
Formula & reference benchmark last verified: December 2026.