---
title: "Train Icon: Free SVG & JSX | Pikaicons"
description: "A train for rail travel, commuting, public transport and timetables. Free in 5 styles as SVG or JSX, for commercial use."
url: https://pikaicons.com/icon/train
---

1. [All categories](https://pikaicons.com/categories)
2. [Automotive & Vehicles](https://pikaicons.com/automotive-vehicles)
3. Train

# Train icon

A train for rail travel, commuting, public transport and timetables. A free train icon in 5 styles, drawn by hand on a 24px grid. Copy it as SVG or JSX or install it from npm, for personal or commercial use.

Category

[Automotive & Vehicles](https://pikaicons.com/automotive-vehicles)

Size

24 × 24, scales to any size

License

Free, credit optional ([terms](https://pikaicons.com/license))

Guides

[Using SVG icons in React](https://pikaicons.com/blog/svg-icons-in-react), [Choosing an icon size](https://pikaicons.com/blog/icon-sizes)

Tags

railway, transportation, locomotive, travel, commute, railroad, train, metro, subway train, rail

## Install from npm (React, MIT)

`npm i @pikaicons/react @pikaicons/core-free`

`import { PikaIcon } from "@pikaicons/react"; import { TrainIcon } from "@pikaicons/core-free"; <PikaIcon icon={TrainIcon} />`

## SVG code

```
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 9.4c0-2.24 0-3.36.44-4.22.38-.75.99-1.36 1.74-1.74C7.04 3 8.16 3 10.4 3h3.2c2.24 0 3.36 0 4.22.44.75.38 1.36.99 1.74 1.74.44.86.44 1.98.44 4.22v6.4c0 1.12 0 1.68-.22 2.11-.19.37-.5.68-.87.87-.43.22-.99.22-2.11.22H7.2c-1.12 0-1.68 0-2.11-.22-.37-.19-.68-.5-.87-.87C4 17.48 4 16.92 4 15.8z"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 13h16"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16h1"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 16h1"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m8 19-2 3"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 19 2 3"/>
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v10"/>
</svg>
```

## Related free icons

* [Car](https://pikaicons.com/icon/car-front-view)
* [Airplane](https://pikaicons.com/icon/airplane-default)
* [Truck](https://pikaicons.com/icon/truck-default)
* [Globe](https://pikaicons.com/icon/globe)
* [Map](https://pikaicons.com/icon/map)
* [Rocket](https://pikaicons.com/icon/rocket-ship)

## More Automotive & Vehicles icons

### In the full library

* Airplane Flying
* Airplane Liftoff
* Airplane Seat
* Airplane Touchdown
* Bus Front View
* Bus Front View Bolt
* Car Engine
* Car Front View Bolt
* Car Side View
* Cyber Truck
* Cycle Cycling
* Fuel Pump Gas
* Luggage Trolley
* Steering Wheel
* Truck Trash

[See all Automotive & Vehicles icons](https://pikaicons.com/automotive-vehicles)

## Get the full library

6,000+ icons across five styles, with the Figma file and the Pikaicons app, for one payment from $99\. 221 of them are free to copy here.

[Get Pikaicons](https://pikaicons.com/pricing) [Browse free icons](https://pikaicons.com/free-icons)
