MT4 & MT5 Statement to CSV Converter
Drop your MetaTrader 4 or MT5 account history report (.htm) and get a CSV of your closed trades back — symbol, direction, entry, exit, commission, swap, and P&L. Parsing happens entirely in your browser; the file is never uploaded anywhere.
FAQ
Does my statement get uploaded anywhere?
No. The file is read and converted entirely in your browser using JavaScript's FileReader API — it's never sent to our servers or anyone else's. You can disconnect from the internet after the page loads and the converter still works.
Where do the P&L, commission, and swap numbers come from?
Directly from your statement. This tool reads the exact Profit, Commission, and Swap figures MetaTrader already printed next to each closed trade — it doesn't recompute or estimate them.
How do I export a statement from MetaTrader?
In MT4: open the Terminal's Account History tab, right-click, and choose Save as Report to get an HTML file. In MT5: open the Toolbox's History tab, right-click, and choose Report → HTML.
How accurate is the conversion?
Tested against real MT4 and MT5 exports — including MT5's quirkier table markup — and both reproduce the statement's own reported P&L to the cent. If a row on your export still looks off, tell us on the feedback page and we'll fix it.
Related calculators
Position Size Calculator
Account × risk% ÷ stop distance → exact shares or contracts.
Risk/Reward Calculator
Entry, stop, target → R:R, R-multiple, and break-even win rate.
Risk of Ruin Calculator
Win rate, R:R, risk per trade → probability of blowing up.
Trade Expectancy Calculator
Win rate, avg win, avg loss → expectancy and profit factor.