A pair of curly braces, for code blocks, JSON objects and developer settings. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.

MathNewv1.7.0Added Updated
Drawn byKeyline Icons
16
20
24 px
32
24px
2px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M8 2C6.8954 2 6 2.8954 6 4L6 8.9645C6 9.4949 5.7893 10.0036 5.4142 10.3787L4.1464 11.6464C4.0527 11.7402 4 11.8674 4 12C4 12.1326 4.0527 12.2598 4.1464 12.3536L5.4142 13.6213C5.7893 13.9964 6 14.5051 6 15.0355L6 20C6 21.1046 6.8954 22 8 22M16 2C17.1046 2 18 2.8954 18 4L18 8.9645C18 9.4949 18.2107 10.0036 18.5858 10.3787L19.8536 11.6464C19.9473 11.7402 20 11.8674 20 12C20 12.1326 19.9473 12.2598 19.8536 12.3536L18.5858 13.6213C18.2107 13.9964 18 14.5051 18 15.0355L18 20C18 21.1046 17.1046 22 16 22" fill="none"/>
</svg>

Also called

What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.

  • curly braces
  • curly brackets
  • json
  • object
  • code block
  • scope

Related icons

The rest of the braces family first, then the Math shelf.

FAQ

Answered from braces's own facts: its shelf, the weights it was drawn in, its siblings and its dates.

What is the braces icon for?
A pair of curly braces, for code blocks, JSON objects and developer settings. It is filed under Math in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as curly braces, curly brackets, json, object, code block and scope, and the browser's search matches all of those.
What styles does the braces icon come in?
All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
Is there a square or circle version of braces?
No. braces is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with braces?
asterisk, brackets, circle-asterisk, circle-divide, circle-equal and circle-radical, and 12 more, all shown below. They are the Math shelf: nothing else in the set is named after braces.
How do I import braces in React?
<Braces /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Braces size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the braces SVG?
icons/stroke/braces.svg, icons/two-tone/braces.svg, icons/duotone/braces.svg and icons/fill/braces.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
When was braces added to the set?
Added 5 Oct 2026, and last redrawn 5 Oct 2026. It ships in v1.7.0, so an install at that version or later has it.

Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.