softicons.dev

train icon

Free train SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons commerce set.

Setup guide
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
     fill="none" stroke="currentColor" stroke-width="2"
     stroke-linecap="round" stroke-linejoin="round">
  <rect x="5" y="3" width="14" height="13" rx="2"/>
  <line x1="5" y1="11" x2="19" y2="11"/>
  <path d="M8 16l-2 4"/>
  <path d="M16 16l2 4"/>
  <line x1="9" y1="14" x2="9" y2="14.01"/>
  <line x1="15" y1="14" x2="15" y2="14.01"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/commerce/train.svg"
     width="24" height="24" alt="train icon">

<!-- …or paste the raw SVG from the SVG tab -->
import { TrainIcon } from "@softicons/react";

export default function Example() {
  return <TrainIcon size={24} strokeWidth={2} />;
}
<script setup>
import { TrainIcon } from "@softicons/vue";
</script>

<template>
  <TrainIcon :size="24" :stroke-width="2" />
</template>
import { TrainIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [TrainIconComponent],
  template: `<train-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}