Train Ticket Mockup
Generate fake train ticket: origin/destination, class, coach, seat, time. For mockups (Eurail/SNCF style).
Anatomy of a train ticket
A train ticket — paper, PDF or wallet pass — carries a small but tightly structured payload: origin and destination stations, class (single class in most Brazilian commuter services; first/second class, business, sleeper and quiet car in long-distance European, Japanese and US trains), date and departure time, seat or berth (mandatory on high-speed services such as TGV, AVE, Shinkansen and the Brazilian planned TAV), fare and a validation code — a QR Code, Aztec or PDF417 barcode that the on-board inspector or the platform gate reader scans. The international railway standard for legacy paper tickets is set by the UIC (Union Internationale des Chemins de fer); modern digital tickets are issued by national operators directly in their apps (DB Navigator for Deutsche Bahn, SNCF Connect for the French SNCF, Trenitalia, Renfe Cercanías for the Spanish Renfe, JR-East for Japan).
Brazil's intercity passenger-rail network has been largely dismantled since the 1950s in favor of highways. Today the active passenger services are SuperVia (Rio de Janeiro metropolitan), CPTM (São Paulo suburban), Trem da Vale (Ouro Preto–Mariana, tourism), Trem da Serra do Mar (Curitiba–Morretes, scenic) and a handful of regional operators. The long-discussed TAV (Trem de Alta Velocidade) between Rio and São Paulo has been on the federal planning board since 2007 but has not broken ground. SuperVia and CPTM tickets are RFID smart cards or QR Codes scanned at the gate; tourism trains issue printable PDFs.
High-speed rail and reserved seating
On TGV (France), AVE (Spain), Shinkansen (Japan), ICE (Germany), Eurostar (UK–FR–BE), Frecciarossa (Italy) and the Chinese/Japanese maglev lines the seat is bound to a specific train number and time slot — you cannot board an earlier or later train without changing the ticket. Eurail and Interrail passes are different: they grant unlimited travel inside a date range, but most high-speed and night trains still require an additional seat reservation issued as a complementary ticket with its own code. Fares vary by class, peak vs off-peak window and how far in advance the ticket is bought — super-saver fares 60+ days ahead can be 70% cheaper than walk-up.
Legitimate uses for a mock train ticket
- UX and UI design for ticketing apps of rail operators, MaaS platforms and travel agencies.
- Training material for on-board inspectors and station agents learning to read codes, fare codes and class hierarchies.
- Simulator gameplay in titles like Train Simulator Classic, Train Sim World and OpenRails where realistic ticket layouts add immersion.
- OCR and barcode-scanner testing covering Aztec, PDF417 and QR Codes used by different operators.
- Demos for client meetings before integrating with the real Eurail, DB or SNCF APIs.
Where the law draws the red line
Boarding a train with a fabricated ticket is estelionato under Código Penal art. 171 (1 to 5 years plus a fine) and can be aggravated by falsidade documental (art. 297-299) if the printed code mimics the operator's anti-counterfeiting layout. In Europe, the same act falls under each member state's fraud and document-falsification statutes (e.g. German Beförderungserschleichung §265a StGB, French escroquerie art. 313-1). Operators validate tickets online against a central database, so a fabricated QR will simply fail at the gate and a screenshot of someone else's ticket is detected the moment the seat is double-scanned. Use this generator only for design, simulators, training and tests where no operator is being deceived.
FAQ
Can I print this and board a real train? No — that is a crime (estelionato + document falsification). The QR code is decorative; it will not validate against any operator's backend.
Can I use it to test a ticketing app I'm building? Yes — that is exactly its intended use. Generate samples, pipe them into your scanner or OCR layer, and replace with real backend tokens before going live.
Do Brazilian commuter trains use QR Codes? Yes. SuperVia and CPTM accept RFID smart cards (BUC, Bilhete Único) and increasingly QR Codes via their mobile apps; tourism trains like Trem da Serra do Mar issue PDFs with QR.
Does an Eurail pass have a code? The mobile Eurail/Interrail pass has a dynamic QR that rotates and ties to the passenger's name; paper passes carry a serial number plus manually filled travel-day boxes that the inspector stamps.
Is anything sent to a server? No. The ticket is rendered entirely in your browser; nothing leaves your machine.
Related Tools
Handwriting Generator
Convert typed text into an image with handwriting appearance. Useful for adding a personal touch to digital work.
Resume Generator
Fill a simple printable A4 CV from a form with personal data, education and experience.
Favicon Generator
Generate a favicon from text/emoji in all common sizes (16, 32, 48, 64, 192, 512). PNG download.