gentleface

Gentleface › Arrows › arrow-up-down

arrow-up-down icon

Arrow up down: swap vertical, swap up down, reverse position. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated arrow-up-down-balance · line-round

Both heads crouch toward the middle, push out together with the shafts stretching behind them, and come back past their places before settling.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 1.3 s. Examples and helper.

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="M4.146 1.146C4.244 1.049 4.362 1 4.5 1C4.638 1 4.756 1.049 4.854 1.146L7.854 4.146C7.953 4.246 8.003 4.364 8.003 4.5C8.003 4.636 7.953 4.754 7.854 4.854C7.754 4.953 7.636 5.003 7.5 5.003C7.364 5.003 7.246 4.953 7.146 4.854L5 2.707L5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11C4.359 11 4.241 10.952 4.144 10.856C4.048 10.759 4 10.641 4 10.5L4 2.707L1.854 4.854C1.756 4.951 1.638 5 1.5 5C1.362 5 1.244 4.951 1.146 4.854C1.049 4.756 1 4.638 1 4.5C1 4.362 1.049 4.244 1.146 4.146L4.146 1.146ZM13.146 11.146C13.246 11.047 13.364 10.997 13.5 10.997C13.636 10.997 13.754 11.047 13.854 11.146C13.953 11.246 14.003 11.364 14.003 11.5C14.003 11.636 13.953 11.754 13.854 11.854L10.854 14.854C10.754 14.953 10.636 15.003 10.5 15.003C10.364 15.003 10.246 14.953 10.146 14.854L7.146 11.854C7.047 11.754 6.997 11.636 6.997 11.5C6.997 11.364 7.047 11.246 7.146 11.146C7.244 11.049 7.362 11 7.5 11C7.638 11 7.756 11.049 7.854 11.146L10 13.293L10 5.5C10 5.359 10.048 5.241 10.144 5.144C10.241 5.048 10.359 5 10.5 5C10.641 5 10.759 5.048 10.856 5.144C10.952 5.241 11 5.359 11 5.5L11 13.293L13.146 11.146Z"/></svg>
React
// Gentleface "arrow-up-down" (line-round), MIT. https://gentleface.com/icons/arrow-up-down
import type { SVGProps } from 'react';

export function ArrowUpDownIcon(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="M4.146 1.146C4.244 1.049 4.362 1 4.5 1C4.638 1 4.756 1.049 4.854 1.146L7.854 4.146C7.953 4.246 8.003 4.364 8.003 4.5C8.003 4.636 7.953 4.754 7.854 4.854C7.754 4.953 7.636 5.003 7.5 5.003C7.364 5.003 7.246 4.953 7.146 4.854L5 2.707L5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11C4.359 11 4.241 10.952 4.144 10.856C4.048 10.759 4 10.641 4 10.5L4 2.707L1.854 4.854C1.756 4.951 1.638 5 1.5 5C1.362 5 1.244 4.951 1.146 4.854C1.049 4.756 1 4.638 1 4.5C1 4.362 1.049 4.244 1.146 4.146L4.146 1.146ZM13.146 11.146C13.246 11.047 13.364 10.997 13.5 10.997C13.636 10.997 13.754 11.047 13.854 11.146C13.953 11.246 14.003 11.364 14.003 11.5C14.003 11.636 13.953 11.754 13.854 11.854L10.854 14.854C10.754 14.953 10.636 15.003 10.5 15.003C10.364 15.003 10.246 14.953 10.146 14.854L7.146 11.854C7.047 11.754 6.997 11.636 6.997 11.5C6.997 11.364 7.047 11.246 7.146 11.146C7.244 11.049 7.362 11 7.5 11C7.638 11 7.756 11.049 7.854 11.146L10 13.293L10 5.5C10 5.359 10.048 5.241 10.144 5.144C10.241 5.048 10.359 5 10.5 5C10.641 5 10.759 5.048 10.856 5.144C10.952 5.241 11 5.359 11 5.5L11 13.293L13.146 11.146Z" />
    </svg>
  );
}
Vue
Vue: see /icons/arrow-up-down.md
Svelte
Svelte: see /icons/arrow-up-down.md
HTML img
HTML img: see /icons/arrow-up-down.md
CSS
CSS: see /icons/arrow-up-down.md
Data URL
Data URL: see /icons/arrow-up-down.md
Sprite
Sprite: see /icons/arrow-up-down.md
SwiftUI
SwiftUI: see /icons/arrow-up-down.md
Compose
Compose: see /icons/arrow-up-down.md
Android XML
Android XML: see /icons/arrow-up-down.md
Flutter
Flutter: see /icons/arrow-up-down.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. 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.

With npm: import { ArrowUpDownIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
swap vertical, swap up down, reverse position
Alternatives
Don’t confuse with
  • move-vertical: one shaft with two heads means resize or move vertically
Also fits
  • swap: the two fields are stacked, e.g. origin and destination in a form (swap-vertical)
Not for
  • sort (use sort): arrow-up-down swaps two items vertically; it does not sort
  • dropdown (use chevrons-up-down): two opposed arrows mean swap (swap-vertical), not a select
  • resize vertical (use move-vertical): two paired arrows mean swap
Tags
arrows, swap, exchange, vertical, up-down, bidirectional
Category
Arrows
Component name
ArrowUpDownIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 49

More arrows icons

For agents

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