train icon
train from Font Awesome 6 Solid by Dave Gandy · Regular · Maps · CC-BY-4.0 Attribution required.
- Name
- train
- Set
- Font Awesome 6 Solid
- Style
- Regular
- Category
- Maps
- Viewbox
- 448×512
- License
- CC BY 4.0
The same icon in other sets
trainBoxIcons v2trainBoxIcons v2 SolidtrainCarbontrainEmoji One (Colored)trainFluent EmojitrainFluent Emoji FlattrainFluent Emoji High ContrasttrainIconoirtrainIonIconstrainJam IconstrainLine AwesometrainMaterial SymbolstrainMaterial Design Iconstrain-fillMingCute IcontrainNoto EmojitrainOpenMojitrainPhosphortrain-fillRemix IcontrainTabler IconstrainTwitter Emoji
More maps icons from Font Awesome 6 Solid
Use the train icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 448 512"><path fill="currentColor" d="M96 0C43 0 0 43 0 96v256c0 48 35.2 87.7 81.1 94.9l-46 46c-7 7-2 19.1 7.9 19.1h39.7c8.5 0 16.6-3.4 22.6-9.4L160 448h128l54.6 54.6c6 6 14.1 9.4 22.6 9.4h39.7c10 0 15-12.1 7.9-19.1l-46-46c46-7.1 81.1-46.9 81.1-94.9V96c0-53-43-96-96-96zM64 96c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 192a48 48 0 1 1 0 96a48 48 0 1 1 0-96"/></svg>
React
import type { SVGProps } from "react";
export function Fa6SolidTrain(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 448 512"><path fill="currentColor" d="M96 0C43 0 0 43 0 96v256c0 48 35.2 87.7 81.1 94.9l-46 46c-7 7-2 19.1 7.9 19.1h39.7c8.5 0 16.6-3.4 22.6-9.4L160 448h128l54.6 54.6c6 6 14.1 9.4 22.6 9.4h39.7c10 0 15-12.1 7.9-19.1l-46-46c46-7.1 81.1-46.9 81.1-94.9V96c0-53-43-96-96-96zM64 96c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 192a48 48 0 1 1 0 96a48 48 0 1 1 0-96"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 448 512"><path fill="currentColor" d="M96 0C43 0 0 43 0 96v256c0 48 35.2 87.7 81.1 94.9l-46 46c-7 7-2 19.1 7.9 19.1h39.7c8.5 0 16.6-3.4 22.6-9.4L160 448h128l54.6 54.6c6 6 14.1 9.4 22.6 9.4h39.7c10 0 15-12.1 7.9-19.1l-46-46c46-7.1 81.1-46.9 81.1-94.9V96c0-53-43-96-96-96zM64 96c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 192a48 48 0 1 1 0 96a48 48 0 1 1 0-96"/></svg> </template>
CSS
.icon-train {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M96%200C43%200%200%2043%200%2096v256c0%2048%2035.2%2087.7%2081.1%2094.9l-46%2046c-7%207-2%2019.1%207.9%2019.1h39.7c8.5%200%2016.6-3.4%2022.6-9.4L160%20448h128l54.6%2054.6c6%206%2014.1%209.4%2022.6%209.4h39.7c10%200%2015-12.1%207.9-19.1l-46-46c46-7.1%2081.1-46.9%2081.1-94.9V96c0-53-43-96-96-96zM64%2096c0-17.7%2014.3-32%2032-32h256c17.7%200%2032%2014.3%2032%2032v96c0%2017.7-14.3%2032-32%2032H96c-17.7%200-32-14.3-32-32zm160%20192a48%2048%200%201%201%200%2096a48%2048%200%201%201%200-96%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M96%200C43%200%200%2043%200%2096v256c0%2048%2035.2%2087.7%2081.1%2094.9l-46%2046c-7%207-2%2019.1%207.9%2019.1h39.7c8.5%200%2016.6-3.4%2022.6-9.4L160%20448h128l54.6%2054.6c6%206%2014.1%209.4%2022.6%209.4h39.7c10%200%2015-12.1%207.9-19.1l-46-46c46-7.1%2081.1-46.9%2081.1-94.9V96c0-53-43-96-96-96zM64%2096c0-17.7%2014.3-32%2032-32h256c17.7%200%2032%2014.3%2032%2032v96c0%2017.7-14.3%2032-32%2032H96c-17.7%200-32-14.3-32-32zm160%20192a48%2048%200%201%201%200%2096a48%2048%200%201%201%200-96%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/fa6-solid/train.svg?color=%231a73e8&size=48