Train icon

Train is a Google Material Symbol from the Transit category. It's one of the 500 most used Material Symbols. It comes in outlined, rounded and sharp styles, filled or unfilled, at seven weights from 100 to 700. Download it as SVG or PNG, or copy code for HTML, React, Vue, Angular, Flutter and Android — it's free to use under the Apache License 2.0.

Outlined

SVG

Outlined, filled

SVG

Every style, fill and weight

Material Symbols are variable: each icon comes in three styles, with or without fill, at seven weights. Pick a combination to preview it, download it, or copy the code for your platform.

Outlined, unfilled, weight 400

train_outlined_fill0_wght400.svg

Train icon in HTML

Load the Material Symbols font from Google Fonts (this link loads just this icon), then use the icon's name as text.

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=train" />

<span class="material-symbols-outlined">train</span>

Train icon in React

// With the font from the HTML tab:
export function TrainIcon() {
  return (
    <span className="material-symbols-outlined">
      train
    </span>
  );
}

// Or as an SVG component (Vite + vite-plugin-svgr) instead:
//   npm install @material-symbols/svg-400
//   import TrainIcon from "@material-symbols/svg-400/outlined/train.svg?react";

Train icon in Vue

<!-- With the font from the HTML tab -->
<template>
  <span class="material-symbols-outlined">train</span>
</template>

<!-- Or as an SVG component (Vite + vite-svg-loader):
     npm install @material-symbols/svg-400
     import TrainIcon from "@material-symbols/svg-400/outlined/train.svg?component"; -->

Train icon in Angular

With Angular Material and the font from the HTML tab:

<mat-icon fontSet="material-symbols-outlined">train</mat-icon>

Train icon in Flutter

Uses the community material_symbols_icons package.

flutter pub add material_symbols_icons

import 'package:material_symbols_icons/symbols.dart';

Icon(Symbols.train, fill: 0, weight: 400)

Train icon in Android

A vector drawable of the selected style, fill and weight:

<!-- res/drawable/train.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
        <path android:fillColor="@android:color/white" android:pathData="M4 15.5v-9.5q0-1.025 .475-1.787t1.463-1.25q.987-.488 2.5-.725T12 2q2.15 0 3.663 .225t2.475 .713Q19.1 3.425 19.55 4.175t.45 1.825v9.5q0 1.475-1.012 2.488T16.5 19l1.5 1.5v.5h-1.75l-2-2H9.75l-2 2h-1.75v-.5l1.5-1.5q-1.475 0-2.487-1.012T4 15.5Zm8-12q-3 0-4.325 .388T5.775 5h12.525q-.45-.675-1.912-1.087T12 3.5ZM5.5 10.375h5.85v-3.875H5.5v3.875Zm11 1.5H5.5h13-2Zm-3.65-1.5h5.65v-3.875H12.85v3.875ZM9.35 15.725q.4-.4 .4-.975t-.4-.975q-.4-.4-.975-.4t-.975 .4q-.4 .4-.4 .975t.4 .975q.4 .4 .975 .4t.975-.4Zm7.25 0q.4-.4 .4-.975t-.4-.975q-.4-.4-.975-.4t-.975 .4q-.4 .4-.4 .975t.4 .975q.4 .4 .975 .4t.975-.4Zm-9.1 1.9h9q.85 0 1.425-.625t.575-1.5v-3.625H5.5v3.625q0 .875 .575 1.5t1.425 .625Zm4.5-12.625h6.3-12.525 6.225Z" />
</vector>

Train icon in SVG

npm install @material-symbols/svg-400

import icon from "@material-symbols/svg-400/outlined/train.svg";

<!-- or load it from a CDN -->
<img src="https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/train.svg" width="24" height="24" alt="Train">

Train icon in Power Apps

Paste into an Image control's Image property. The Copy button copies the full formula with this icon's SVG.

"data:image/svg+xml;utf8, " & EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>…</svg>")

Details

NameTrain
Ligaturetrain
Code pointU+E570
CategoryTransit
StylesOutlined, Rounded, Sharp — each unfilled or filled
Weights100, 200, 300, 400, 500, 600, 700
Files@material-symbols/svg-400/outlined/train.svg, train-fill.svg
FlutterSymbols.train
LicenseApache License 2.0 (© Google LLC)

Keywords

transittravelmapstransportationvehicledestinationjourneycarautomobileschedulerouteelectriccars

Related icons