DevTools Logo

Discord Embed Builder

Discord Embed Builder

Compose webhook embeds with a live preview and hard-limit validation.

Runs in your browser
154 / 6,000 characters · 2/25 fields
Try an example

Embed composer

1 line · 83 chars

22/256

61/4096

Payload & preview

1 embed(s)

This Friday we ship the new release notes. See you there!

When: Friday, 18:00 UTC

Where: #announcements

Details

Discord enforces strict limits silently: 25 fields per embed, 256 characters for names, 1024 for values and 6000 across every embed in a message. This builder counts Unicode code points the way Discord does, flags violations with JSON paths, and emits the minimal webhook payload plus a shell-safe curl command. No request is ever sent to Discord; paste the curl into your own terminal if you want to test a webhook.

More examples

Announcement with fields

{
  'embeds': [{
    'title': 'Community announcement',
    'color': 5777154,
    'fields': [{ 'name': 'When', 'value': 'Friday, 18:00 UTC', 'inline': true }]
  }]
}

The curl tab substitutes your webhook URL and quotes the JSON so apostrophes survive the shell.

Changelog with a code block

description: ```\n- Faster builds\n- Fixed export\n```

Discord renders fenced code blocks in embed descriptions; the preview shows the same subset safely escaped.

Diagnosing a 400 response

Paste JSON → error: embeds[0].fields[3].value — Exceeds 1024 characters.

Import reports every violation with its JSON path so you can jump straight to the offending input.

Examples

Event announcement

Input
title: Community announcement · fields: When / Where (inline)
Output
{ "embeds": [{ "title": "Community announcement", "color": 5777154, "fields": [...] }] }

Two inline fields render side by side in Discord, and the color is emitted as the decimal integer Discord expects.

Changelog code block

Input
description: ```
- Faster builds
- Fixed export
```
Output
Preview renders a preformatted block; payload preserves the backticks.

Fenced blocks belong in the description; the renderer escapes HTML before applying markdown so pasted tags stay literal.

Oversized field

Input
fields[0].value: 1100 characters
Output
embeds[0].fields[0].value — Exceeds 1024 characters.

The validation report names the exact JSON path; copy is withheld until the issue is fixed.

Apostrophe in a title

Input
title: Don't miss our event
Output
-d '{"embeds":[{"title":"Don'\''t miss our event"}]}'

The curl emitter splices single quotes correctly so the command survives POSIX shells.

About this tool

Discord Embed Builder is a form-driven composer for webhook embeds. Edit the title, description, color, author, footer and fields, and the webhook-ready JSON updates on every keystroke. A live preview mirrors Discord's dark theme, including the accent bar and inline field grid.

Discord enforces its limits silently, so an oversized field or a bad media URL usually surfaces as an opaque HTTP 400. This tool encodes the documented limits with JSON-path error reporting: 25 fields, 256 characters for names, 1024 for values, 4096 for descriptions, and a 6000-character budget shared by every embed in the message. Counts use Unicode code points, matching Discord's behavior for emoji and accented text.

The output panel offers the full webhook payload, the embed object alone, and a curl command with shell-safe quoting. No network request is made: the webhook URL stays in your tab and is only substituted into the command you copy.

What this tool does not do

  • No message is sent: the curl command is generated for you to run in your own terminal.
  • The preview covers Discord's common markdown subset and approximate dark-theme colors; exact rendering depends on Discord's current client.
  • Client-supplied video URLs are not included because Discord populates embeds' video data from link unfurls.
  • Image URLs are validated by shape only; the tool does not check that a remote image exists.
  • Saved drafts persist locally in the browser; webhook URLs are never written to localStorage.

How to use this tool

  1. Compose the embed

    Fill in the title, description, color and optional author/footer. Add fields for structured data and toggle inline for a three-across layout.

  2. Watch the counters

    The character meter and per-field counters update live. Fix any red JSON-path issue before copying.

  3. Paste an existing payload

    Open Paste JSON, paste an embed or full webhook payload, then click Import JSON to hydrate the form and see all violations.

  4. Copy the command

    Switch to the curl tab, paste your webhook URL, copy the command and run it in your own terminal to test the message.

Use cases

Bot development

Prototype a webhook payload before wiring it into an SDK, then copy the curl for a quick smoke test.

Community moderation

Design event and rule announcements without handing a webhook URL to a third-party website.

Cron status posts

Compose a compact status embed once and paste the JSON into a deployment script.

400-response debugging

Paste a failing payload and read the exact limit violations with JSON paths.

Discord embed limits (per message unless noted)

FieldLimit
Title256 code points
Description4096 code points
Field name / value256 / 1024 code points, 25 fields maximum
Footer / author name2048 / 256 code points
Total across embeds6000 code points
Embeds / message content10 embeds, 2000 content characters
Media URLshttps:// or attachment://filename
ColorInteger 0–16777215 from a #RGB or #RRGGBB value

Optional empty keys are omitted from the emitted JSON so payloads stay minimal.

Common mistakes

Mistake:Counting UTF-16 length with .length for emoji titles.

Fix:The builder counts code points with Array.from so 256 astral emoji fit exactly as Discord allows.

Mistake:Treating the 6000-character budget as per embed.

Fix:The meter sums every embed in the message; split long content into multiple messages instead.

Mistake:Using http:// or a local path for image URLs.

Fix:Discord accepts https:// URLs or attachment://filename for uploaded media; the validator flags other schemes.

Mistake:Pasting a #-less hex color and losing a digit.

Fix:Use the # prefix; the strict hex parser rejects malformed values instead of silently misparsing them.

Mistake:Expecting the preview to send the message.

Fix:This tool never calls Discord. Copy the curl and run it yourself when you are ready.

Frequently asked questions

What are the Discord embed character limits?

Title 256, description 4096, field name 256, field value 1024, footer text 2048 and author name 256 code points. A message can carry at most 25 fields, 10 embeds and 6000 characters summed across all embeds.

How many embeds fit in one webhook message?

Ten. The builder caps embeds at ten and applies the shared 6000-character budget across the whole message, so several large embeds may still exceed the limit together.

Why does my webhook return HTTP 400?

Usually an oversized field, an invalid or http:// media URL, a malformed timestamp, or an empty payload. Paste the JSON into the import box: the validator lists every violation with its exact JSON path.

Can I use local image files?

Not directly. Discord accepts https:// URLs or attachment://filename references to files uploaded with the webhook request. The builder validates that shape but does not upload files for you.

Does the builder send anything to Discord?

No. All composition and validation happens in your browser. The curl tab only prints a command; the webhook URL you enter stays in memory and is never persisted or transmitted by this tool.

How are emoji and accented characters counted?

By Unicode code points, the way Discord counts them. An astral emoji counts as one character here even though JavaScript .length reports two UTF-16 code units.

References & standards