Train icon
famicons:train
The Train icon (famicons:train) is a free SVG icon from the Famicons set by Family. It is drawn on a 512 × 512 grid. Famicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><ellipse cx="256" cy="304" fill="currentColor" rx="32.05" ry="31.94" transform="rotate(-45 256.001 304)"/><path fill="currentColor" d="M352 32h-15a10 10 0 0 1-7.87-3.78A31.94 31.94 0 0 0 304 16h-96a32 32 0 0 0-26.11 13.52A6 6 0 0 1 177 32h-17c-36.81 0-64 28.84-64 64v255c0 23.27 25.6 42.06 83 60.94a753 753 0 0 0 73.77 19.73a16 16 0 0 0 6.46 0A753 753 0 0 0 333 411.94c57.4-18.88 83-37.67 83-60.94V96a64 64 0 0 0-64-64m-168 96h144a8 8 0 0 1 8 8v48a8 8 0 0 1-8 8H184a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8m76.18 239.87a64 64 0 1 1 59.69-59.69a64.07 64.07 0 0 1-59.69 59.69"/><path fill="currentColor" d="M395.31 468.69L347.63 421c-6.09-6.1-16-6.66-22.38-.86a16 16 0 0 0-.56 23.16l4.68 4.69H182.63l4.36-4.37c6.1-6.09 6.66-16 .86-22.38a16 16 0 0 0-23.16-.56l-48 48a16 16 0 1 0 22.62 22.62l11.32-11.3h210.74l11.32 11.31a16 16 0 0 0 22.62-22.62"/></svg>How to use the Train icon
React
import { Icon } from "@iconify/react";
<Icon icon="famicons:train" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="famicons:train" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="famicons:train" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[famicons--train]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/famicons -->
<div class="i-famicons:train"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="famicons:train"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/famicons/train.svg" alt="Train icon" width="24" height="24">Related icons in Famicons
Train icon in other icon sets
Train icon FAQ
Is the Train icon free for commercial use?
Yes. Famicons 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="famicons: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/famicons/train.svg" alt="Train icon">, or paste the SVG code inline to style it with CSS.