ICONYZ
English
Train icon from Fontisto

Train icon

fontisto:train

The Train icon (fontisto:train) is a free SVG icon from the Fontisto set by Kenan Gündoğan. It is drawn on a 18 × 24 grid. Fontisto icons are released under the MIT 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
Fontisto
Author
Kenan Gündoğan
License
MIT
Size
18 × 24
Category
Transportation
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="18" height="24" viewBox="0 0 18 24"><path fill="currentColor" d="M2.002 15.088a.684.684 0 0 1 .683-.682h2.743a.684.684 0 0 1 .683.682a.684.684 0 0 1-.683.682H2.682a.684.684 0 0 1-.683-.682zm.8-13.1h12.151a.8.8 0 0 1 .8.799v.001l-.41 9.16a.8.8 0 0 1-.8.8H3.21a.8.8 0 0 1-.8-.799v-.001L2 2.788a.8.8 0 0 1 .8-.8zm12.889 13.1a.684.684 0 0 1-.683.682h-2.746a.684.684 0 0 1-.683-.682a.684.684 0 0 1 .683-.682h2.746c.376.002.68.306.682.682zM1.58 18.642h14.594a.93.93 0 0 0 .926-.926V.927a.93.93 0 0 0-.926-.926H1.579a.93.93 0 0 0-.926.926v16.789a.93.93 0 0 0 .926.926zM0 24h3.906l2.218-4.44H4.069zm13.686-4.44h-2.055L13.849 24h3.906z"/></svg>

How to use the Train icon

React

import { Icon } from "@iconify/react";

<Icon icon="fontisto:train" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="fontisto:train" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="fontisto:train" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[fontisto--train]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/fontisto -->
<div class="i-fontisto:train"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="fontisto:train"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fontisto/train.svg" alt="Train icon" width="24" height="24">

Related icons in Fontisto

Train icon in other icon sets

Train icon FAQ

Is the Train icon free for commercial use?

Yes. Fontisto icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Train icon in React?

Install @iconify/react and render <Icon icon="fontisto:train" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Train icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fontisto/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.

Browse all Fontisto icons →