gentleface

Gentleface › Shapes › square

square icon

Square: square, square shape. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736ZM3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707Z"/></svg>
React
// Gentleface "square" (line-round), MIT. https://gentleface.com/icons/square
import type { SVGProps } from 'react';

export function SquareIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736ZM3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707Z" />
    </svg>
  );
}
Vue
Vue: see /icons/square.md
Svelte
Svelte: see /icons/square.md
HTML img
HTML img: see /icons/square.md
CSS
CSS: see /icons/square.md
Data URL
Data URL: see /icons/square.md
Sprite
Sprite: see /icons/square.md
SwiftUI
SwiftUI: see /icons/square.md
Compose
Compose: see /icons/square.md
Android XML
Android XML: see /icons/square.md
Flutter
Flutter: see /icons/square.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

Meaning

Use it for
square, square shape
Alternatives
  • checkbox: a ticked box in a form (checkbox)
  • squircle: an iOS-style squircle (squircle-shape)
  • rectangle: a rectangle shape (rectangle)
Don’t confuse with
  • stop: a filled square is the media stop control (stop)
Also fits
  • rectangle: a square shape (square)
  • squircle shape: a square with sharp or slightly rounded corners (square)
Not for
  • stop (use stop): the plain square shape (square)
Tags
square, shape, rectangle, box, quadrilateral, geometry
Category
Shapes
Component name
SquareIcon
History
  • added

More shapes icons

For agents

Metadata: /icons/square.json · Markdown: /icons/square.md · SVG: https://gentleface.com/svg/{style}/16/square.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/square.png

Feedback