Three and a half million people travelled through Edinburgh's Waverley train station last month, according to ScotRail figures.
Rail chiefs say the number is a 7% increase on August 2016.
The second weekend of the Edinburgh festivals was the busiest few days of the month, with 384,000 people passing through the station in just three days.
READ MORe: UK petrol price 'could rise up to 4p' after hurricane shuts down US refineries
ScotRail Alliance increased the number of services to and from Edinburgh during the festivals, including late-night journeys. The number of carriages on trains was also increased.
Edinburgh Waverley station manager Juliet Donnachie said: "For three and a half million people to have travelled through Waverley during August shows the impact of the festivals.
"Getting people to and from Edinburgh during the festivals is a massive operation and our station teams at Waverley and across the network did a great job helping customers travel about hassle-free.
READ MORe: UK petrol price 'could rise up to 4p' after hurricane shuts down US refineries
"The festivals are a chance to showcase Edinburgh and the country to the world. We are delighted to have played such an important part in making the festivals a success."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here