train icon
train from IconPark Solid by ByteDance · Solid · Travel · Apache-2.0 Free for personal and commercial use.
- Name
- train
- Set
- IconPark Solid
- Style
- Solid
- Category
- Travel
- Viewbox
- 48×48
- License
- Apache 2.0
The same icon in other sets
trainBoxIcons v2trainBoxIcons v2 SolidtrainCarbontrainEmoji One (Colored)trainFont Awesome 6 SolidtrainFont Awesome SolidtrainFluent EmojitrainFluent Emoji FlattrainFluent Emoji High ContrasttrainFirefox OS EmojitrainIconParktrainIconPark OutlinetrainIconPark TwoTonetrainIconoirtrainIonIconstrainJam IconstrainLine AwesometrainMaterial SymbolstrainMaterial Symbols LighttrainMaterial Design Iconstrain-fillMingCute IcontrainMyna UI IconstrainNoto EmojitrainOpenMoji
More travel icons from IconPark Solid
Use the train icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><defs><mask id="SVGMCbDOeYT"><g fill="none"><path stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M9 8.84c0-.933.438-1.807 1.271-2.225C12.247 5.625 16.613 4 24 4s11.754 1.625 13.728 2.615C38.563 7.033 39 7.907 39 8.839V36a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M34 38v4m-20-4v4"/><path fill="#fff" stroke="#fff" d="M20.5 32a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Zm10 0a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 44h8"/><path fill="#fff" stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M9 12h30v14H9z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 12v14"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 12h8m-8 14h8"/></g></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGMCbDOeYT)"/></svg>
React
import type { SVGProps } from "react";
export function IconParkSolidTrain(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><defs><mask id="SVGMCbDOeYT"><g fill="none"><path stroke="#fff" strokeLinejoin="round" strokeWidth="4" d="M9 8.84c0-.933.438-1.807 1.271-2.225C12.247 5.625 16.613 4 24 4s11.754 1.625 13.728 2.615C38.563 7.033 39 7.907 39 8.839V36a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2z"/><path stroke="#fff" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4" d="M34 38v4m-20-4v4"/><path fill="#fff" stroke="#fff" d="M20.5 32a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Zm10 0a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z"/><path stroke="#fff" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4" d="M20 44h8"/><path fill="#fff" stroke="#fff" strokeLinejoin="round" strokeWidth="4" d="M9 12h30v14H9z"/><path stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4" d="M24 12v14"/><path stroke="#fff" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4" d="M20 12h8m-8 14h8"/></g></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGMCbDOeYT)"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><defs><mask id="SVGMCbDOeYT"><g fill="none"><path stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M9 8.84c0-.933.438-1.807 1.271-2.225C12.247 5.625 16.613 4 24 4s11.754 1.625 13.728 2.615C38.563 7.033 39 7.907 39 8.839V36a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M34 38v4m-20-4v4"/><path fill="#fff" stroke="#fff" d="M20.5 32a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Zm10 0a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 44h8"/><path fill="#fff" stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M9 12h30v14H9z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 12v14"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 12h8m-8 14h8"/></g></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGMCbDOeYT)"/></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%2048%2048%22%3E%3Cdefs%3E%3Cmask%20id%3D%22SVGMCbDOeYT%22%3E%3Cg%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M9%208.84c0-.933.438-1.807%201.271-2.225C12.247%205.625%2016.613%204%2024%204s11.754%201.625%2013.728%202.615C38.563%207.033%2039%207.907%2039%208.839V36a2%202%200%200%201-2%202H11a2%202%200%200%201-2-2z%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M34%2038v4m-20-4v4%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20d%3D%22M20.5%2032a1.5%201.5%200%201%201-3%200a1.5%201.5%200%200%201%203%200Zm10%200a1.5%201.5%200%201%201-3%200a1.5%201.5%200%200%201%203%200Z%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M20%2044h8%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M9%2012h30v14H9z%22%2F%3E%3Cpath%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M24%2012v14%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M20%2012h8m-8%2014h8%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M0%200h48v48H0z%22%20mask%3D%22url(%23SVGMCbDOeYT)%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%2048%2048%22%3E%3Cdefs%3E%3Cmask%20id%3D%22SVGMCbDOeYT%22%3E%3Cg%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M9%208.84c0-.933.438-1.807%201.271-2.225C12.247%205.625%2016.613%204%2024%204s11.754%201.625%2013.728%202.615C38.563%207.033%2039%207.907%2039%208.839V36a2%202%200%200%201-2%202H11a2%202%200%200%201-2-2z%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M34%2038v4m-20-4v4%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20d%3D%22M20.5%2032a1.5%201.5%200%201%201-3%200a1.5%201.5%200%200%201%203%200Zm10%200a1.5%201.5%200%201%201-3%200a1.5%201.5%200%200%201%203%200Z%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M20%2044h8%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M9%2012h30v14H9z%22%2F%3E%3Cpath%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M24%2012v14%22%2F%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20d%3D%22M20%2012h8m-8%2014h8%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M0%200h48v48H0z%22%20mask%3D%22url(%23SVGMCbDOeYT)%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/icon-park-solid/train.svg?color=%231a73e8&size=48