Subway icon
material-symbols:subway
The Subway icon (material-symbols:subway) is a free SVG icon from the Material Symbols set by Google. It is drawn on a 24 × 24 grid. Material Symbols icons are released under the Apache 2.0 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
- Material Symbols
- Author
- License
- Apache-2.0
- Size
- 24 × 24
- Category
- Transit
- Tags
- automobile, bike, car, cars, maps, rail, scooter, train, transportation, travel, tunnel, underground, vehicle, subway sharp
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M2 22V8.85q0-2.125 1.1-3.687T6.2 2.8q1.35-.525 2.875-.662T12 2t2.925.138T17.8 2.8q2 .8 3.1 2.363T22 8.85V22zm7.1-2l1.5-1.5h2.75l1.5 1.5h1.65v-.5l-1.05-1.05q1.1-.15 1.825-.987T18 15.5V9q0-1.95-1.75-2.475T12 6q-2.275 0-4.137.525T6 9v6.5q0 1.125.725 1.963t1.825.987L7.5 19.5v.5zm-1.6-7V9h9v4zm7.288 3.213q-.288-.288-.288-.713t.288-.712t.712-.288t.713.288t.287.712t-.288.713t-.712.287t-.712-.288m-7 0Q7.5 15.925 7.5 15.5t.288-.712t.712-.288t.713.288t.287.712t-.288.713t-.712.287t-.712-.288"/></svg>How to use the Subway icon
React
import { Icon } from "@iconify/react";
<Icon icon="material-symbols:subway" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="material-symbols:subway" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="material-symbols:subway" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[material-symbols--subway]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/material-symbols -->
<div class="i-material-symbols:subway"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="material-symbols:subway"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/material-symbols/subway.svg" alt="Subway icon" width="24" height="24">Related icons in Material Symbols
Subway icon in other icon sets
Subway icon FAQ
Is the Subway icon free for commercial use?
Yes. Material Symbols icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.
How do I use the Subway icon in React?
Install @iconify/react and render <Icon icon="material-symbols:subway" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Subway icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/material-symbols/subway.svg" alt="Subway icon">, or paste the SVG code inline to style it with CSS.