train from Material Symbols by Google · Regular · Transit · Apache-2.0 Free for personal and commercial use.

Name
train
Set
Material Symbols
Style
Regular
Category
Transit
Viewbox
24×24
License
Apache 2.0
Aliases
train-sharp

3 other variants in Material Symbols

The same icon in other sets

More transit icons from Material Symbols

Use the train icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M4 15.5V6q0-1.325.688-2.113t1.812-1.2t2.563-.55T12 2q1.65 0 3.113.138t2.55.55t1.712 1.2T20 6v9.5q0 1.475-1.012 2.488T16.5 19l1.5 1.5v.5h-2l-2-2h-4l-2 2H6v-.5L7.5 19q-1.475 0-2.488-1.012T4 15.5M6 10h5V7H6zm7 0h5V7h-5zm-3.425 5.575Q10 15.15 10 14.5t-.425-1.075T8.5 13t-1.075.425T7 14.5t.425 1.075T8.5 16t1.075-.425m7 0Q17 15.15 17 14.5t-.425-1.075T15.5 13t-1.075.425T14 14.5t.425 1.075T15.5 16t1.075-.425"/></svg>

React

import type { SVGProps } from "react";

export function MaterialSymbolsTrain(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M4 15.5V6q0-1.325.688-2.113t1.812-1.2t2.563-.55T12 2q1.65 0 3.113.138t2.55.55t1.712 1.2T20 6v9.5q0 1.475-1.012 2.488T16.5 19l1.5 1.5v.5h-2l-2-2h-4l-2 2H6v-.5L7.5 19q-1.475 0-2.488-1.012T4 15.5M6 10h5V7H6zm7 0h5V7h-5zm-3.425 5.575Q10 15.15 10 14.5t-.425-1.075T8.5 13t-1.075.425T7 14.5t.425 1.075T8.5 16t1.075-.425m7 0Q17 15.15 17 14.5t-.425-1.075T15.5 13t-1.075.425T14 14.5t.425 1.075T15.5 16t1.075-.425"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M4 15.5V6q0-1.325.688-2.113t1.812-1.2t2.563-.55T12 2q1.65 0 3.113.138t2.55.55t1.712 1.2T20 6v9.5q0 1.475-1.012 2.488T16.5 19l1.5 1.5v.5h-2l-2-2h-4l-2 2H6v-.5L7.5 19q-1.475 0-2.488-1.012T4 15.5M6 10h5V7H6zm7 0h5V7h-5zm-3.425 5.575Q10 15.15 10 14.5t-.425-1.075T8.5 13t-1.075.425T7 14.5t.425 1.075T8.5 16t1.075-.425m7 0Q17 15.15 17 14.5t-.425-1.075T15.5 13t-1.075.425T14 14.5t.425 1.075T15.5 16t1.075-.425"/></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%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M4%2015.5V6q0-1.325.688-2.113t1.812-1.2t2.563-.55T12%202q1.65%200%203.113.138t2.55.55t1.712%201.2T20%206v9.5q0%201.475-1.012%202.488T16.5%2019l1.5%201.5v.5h-2l-2-2h-4l-2%202H6v-.5L7.5%2019q-1.475%200-2.488-1.012T4%2015.5M6%2010h5V7H6zm7%200h5V7h-5zm-3.425%205.575Q10%2015.15%2010%2014.5t-.425-1.075T8.5%2013t-1.075.425T7%2014.5t.425%201.075T8.5%2016t1.075-.425m7%200Q17%2015.15%2017%2014.5t-.425-1.075T15.5%2013t-1.075.425T14%2014.5t.425%201.075T15.5%2016t1.075-.425%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%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M4%2015.5V6q0-1.325.688-2.113t1.812-1.2t2.563-.55T12%202q1.65%200%203.113.138t2.55.55t1.712%201.2T20%206v9.5q0%201.475-1.012%202.488T16.5%2019l1.5%201.5v.5h-2l-2-2h-4l-2%202H6v-.5L7.5%2019q-1.475%200-2.488-1.012T4%2015.5M6%2010h5V7H6zm7%200h5V7h-5zm-3.425%205.575Q10%2015.15%2010%2014.5t-.425-1.075T8.5%2013t-1.075.425T7%2014.5t.425%201.075T8.5%2016t1.075-.425m7%200Q17%2015.15%2017%2014.5t-.425-1.075T15.5%2013t-1.075.425T14%2014.5t.425%201.075T15.5%2016t1.075-.425%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/material-symbols/train.svg?color=%231a73e8&size=48