ICONYZ
English
Square icon from SVG Logos

Square icon

logos:square

The Square icon (logos:square) is a free SVG icon from the SVG Logos set by Gil Barbara. It is drawn on a 256 × 256 grid. SVG Logos icons are released under the CC0 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
SVG Logos
Author
Gil Barbara
License
CC0-1.0
Size
256 × 256
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><g fill="#2e3b4e"><path d="M212.651 0H42.67C19.107 0 0 19.1 0 42.67v169.98c0 23.569 19.107 42.67 42.67 42.67h169.98c23.569 0 42.67-19.101 42.67-42.67V42.67C255.326 19.101 236.226 0 212.65 0m-3.748 195.448c0 7.438-6.029 13.46-13.461 13.46H59.908c-7.439 0-13.467-6.022-13.467-13.46V59.908c0-7.439 6.028-13.467 13.467-13.467h135.534c7.432 0 13.46 6.028 13.46 13.467z"/><path d="M100.57 162.48c-4.27 0-7.729-3.482-7.729-7.77v-54.1c0-4.287 3.458-7.769 7.729-7.769h54.18c4.283 0 7.73 3.482 7.73 7.77v54.1c0 4.287-3.447 7.768-7.73 7.768z"/></g></svg>

How to use the Square icon

React

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

<Icon icon="logos:square" width="24" />

Vue

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

<template>
  <Icon icon="logos:square" width="24" />
</template>

Svelte

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

<Icon icon="logos:square" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="logos:square"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/logos/square.svg" alt="Square icon" width="24" height="24">

Related icons in SVG Logos

Square icon in other icon sets

Square icon FAQ

Is the Square icon free for commercial use?

Yes. SVG Logos icons are released under the CC0 license, which allows use in personal and commercial projects.

How do I use the Square icon in React?

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

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

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

Browse all SVG Logos icons →