ICONYZ
English
Burger icon from Boxicons

Burger icon

boxicons:burger

The Burger icon (boxicons:burger) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16 2H8C4.69 2 2 4.69 2 8c0 .55.45 1 1 1h18c.55 0 1-.45 1-1c0-3.31-2.69-6-6-6M4.13 7C4.58 5.28 6.14 4 8 4h8c1.86 0 3.43 1.28 3.87 3zM21 15H3c-.55 0-1 .45-1 1c0 3.31 2.69 6 6 6h8c3.31 0 6-2.69 6-6c0-.55-.45-1-1-1m-5 5H8c-1.86 0-3.43-1.28-3.87-3h15.75c-.45 1.72-2.01 3-3.87 3Zm1-10c-1.6 0-2.45.68-3.12 1.22c-.59.47-.98.78-1.88.78s-1.29-.31-1.88-.78C9.44 10.68 8.6 10 6.99 10s-2.45.68-3.13 1.22c-.59.47-.98.78-1.88.78v2c1.6 0 2.45-.68 3.13-1.22c.59-.47.98-.78 1.88-.78s1.29.31 1.88.78C9.55 13.32 10.39 14 12 14s2.45-.68 3.12-1.22c.59-.47.98-.78 1.87-.78s1.29.31 1.87.78c.68.54 1.52 1.22 3.12 1.22v-2c-.9 0-1.29-.31-1.87-.78c-.68-.54-1.52-1.22-3.12-1.22Z"/></svg>

How to use the Burger icon

React

import { Icon } from "@iconify/react";

<Icon icon="boxicons:burger" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="boxicons:burger" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="boxicons:burger" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--burger]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:burger"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="boxicons:burger"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/burger.svg" alt="Burger icon" width="24" height="24">

Related icons in Boxicons

Burger icon in other icon sets

Burger icon FAQ

Is the Burger icon free for commercial use?

Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Burger icon in React?

Install @iconify/react and render <Icon icon="boxicons:burger" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Burger icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/burger.svg" alt="Burger icon">, or paste the SVG code inline to style it with CSS.

Browse all Boxicons →