What is the difference between backtesting and forward testing?

Backtesting uses historical data to simulate past performance, while forward testing applies a strategy to live or out-of-sample data in real-time without actual trades. Both are used to validate trading systems but at different stages.