Trains can be used to reach Vienna and Budapest from Prague. There are regular trains connecting Prague and Vienna (we recommend an overnight train - as Prague to Vienna train takes over 7+ hours long). Prague and Budapest are connected by Railjet high speed trains. This train departs from the central Prague rail station called Praha Hlavni Nadrazi and arrives at the central Budapest train station called Keleti. Prague to Budapest takes about 5.50 hours.  Vienna to Budapest takes about 3.50 hours by train.