gentleface

Gentleface › Arrows › arrow-left-right

arrow-left-right icon

Arrow left right: swap, exchange, transfer, switch. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated arrow-left-right-push · 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="M13.003 4.5C13.003 4.636 12.953 4.754 12.854 4.854L9.854 7.854C9.754 7.953 9.636 8.003 9.5 8.003C9.364 8.003 9.246 7.953 9.146 7.854C9.049 7.756 9 7.638 9 7.5C9 7.362 9.049 7.244 9.146 7.146L11.293 5L2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5C2 4.359 2.048 4.241 2.144 4.144C2.241 4.048 2.359 4 2.5 4L11.293 4L9.146 1.854C9.049 1.756 9 1.638 9 1.5C9 1.362 9.049 1.244 9.146 1.146C9.246 1.047 9.364 0.997 9.5 0.997C9.636 0.997 9.754 1.047 9.854 1.146L12.854 4.146C12.953 4.246 13.003 4.364 13.003 4.5ZM1.997 10.5C1.997 10.364 2.047 10.246 2.146 10.146L5.146 7.146C5.246 7.047 5.364 6.997 5.5 6.997C5.636 6.997 5.754 7.047 5.854 7.146C5.953 7.246 6.003 7.364 6.003 7.5C6.003 7.636 5.953 7.754 5.854 7.854L3.707 10L12.5 10C12.641 10 12.759 10.048 12.856 10.144C12.952 10.241 13 10.359 13 10.5C13 10.641 12.952 10.759 12.856 10.856C12.759 10.952 12.641 11 12.5 11L3.707 11L5.854 13.146C5.953 13.246 6.003 13.364 6.003 13.5C6.003 13.636 5.953 13.754 5.854 13.854C5.756 13.951 5.638 14 5.5 14C5.362 14 5.244 13.951 5.146 13.854L2.146 10.854C2.047 10.754 1.997 10.636 1.997 10.5Z"/></svg>
React
// Gentleface "arrow-left-right" (line-round), MIT. https://gentleface.com/icons/arrow-left-right
import type { SVGProps } from 'react';

export function ArrowLeftRightIcon(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.003 4.5C13.003 4.636 12.953 4.754 12.854 4.854L9.854 7.854C9.754 7.953 9.636 8.003 9.5 8.003C9.364 8.003 9.246 7.953 9.146 7.854C9.049 7.756 9 7.638 9 7.5C9 7.362 9.049 7.244 9.146 7.146L11.293 5L2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5C2 4.359 2.048 4.241 2.144 4.144C2.241 4.048 2.359 4 2.5 4L11.293 4L9.146 1.854C9.049 1.756 9 1.638 9 1.5C9 1.362 9.049 1.244 9.146 1.146C9.246 1.047 9.364 0.997 9.5 0.997C9.636 0.997 9.754 1.047 9.854 1.146L12.854 4.146C12.953 4.246 13.003 4.364 13.003 4.5ZM1.997 10.5C1.997 10.364 2.047 10.246 2.146 10.146L5.146 7.146C5.246 7.047 5.364 6.997 5.5 6.997C5.636 6.997 5.754 7.047 5.854 7.146C5.953 7.246 6.003 7.364 6.003 7.5C6.003 7.636 5.953 7.754 5.854 7.854L3.707 10L12.5 10C12.641 10 12.759 10.048 12.856 10.144C12.952 10.241 13 10.359 13 10.5C13 10.641 12.952 10.759 12.856 10.856C12.759 10.952 12.641 11 12.5 11L3.707 11L5.854 13.146C5.953 13.246 6.003 13.364 6.003 13.5C6.003 13.636 5.953 13.754 5.854 13.854C5.756 13.951 5.638 14 5.5 14C5.362 14 5.244 13.951 5.146 13.854L2.146 10.854C2.047 10.754 1.997 10.636 1.997 10.5Z" />
    </svg>
  );
}
Vue
Vue: see /icons/arrow-left-right.md
Svelte
Svelte: see /icons/arrow-left-right.md
HTML img
HTML img: see /icons/arrow-left-right.md
CSS
CSS: see /icons/arrow-left-right.md
Data URL
Data URL: see /icons/arrow-left-right.md
Sprite
Sprite: see /icons/arrow-left-right.md
SwiftUI
SwiftUI: see /icons/arrow-left-right.md
Compose
Compose: see /icons/arrow-left-right.md
Android XML
Android XML: see /icons/arrow-left-right.md
Flutter
Flutter: see /icons/arrow-left-right.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 { ArrowLeftRightIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
swap, exchange, transfer, switch, interchange, swap horizontal, switch sides, data transfer
Alternatives
Don’t confuse with
  • toggle: toggle is an on/off switch control, not swapping two things
  • move-horizontal: one shaft with two heads means resize or move along one axis
Also fits
  • swap vertical: the two items sit side by side (swap)
  • bank transfer: a generic transfer
Not for
  • resize horizontal (use move-horizontal): two paired arrows mean swap
  • flip horizontal (use flip-horizontal): two opposite arrows mean swap or exchange
  • currency exchange (use coins-swap): generic swap or transfer, not currency
  • toggle (use toggle): arrow-left-right owns switch as in swap (swap), not on/off
Tags
arrows, swap, exchange, horizontal, bidirectional
Category
Arrows
Component name
ArrowLeftRightIcon
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-left-right.json · Markdown: /icons/arrow-left-right.md · SVG: https://gentleface.com/svg/{style}/16/arrow-left-right.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/arrow-left-right.png