Alongside the better-than-expected growth, the ONS revised up its figure for January from a contraction of 0.1% to no growth.
Monthly figures alone can be volatile so should be taken in context. The more stable three-month average to February shows growth is up 0.6%.
This would have been considered normal growth a decade ago, but has been elusive in recent years.
However, it suggests that recent talk of a recession has been way off the mark.
But February's figure comes ahead of the impact of tax rises on businesses and household energy and water bill increases on the economy, along with US tariffs.
Ruth Gregory, deputy chief UK economist, said the UK's "surprisingly strong growth will prove short lived, as rises in tariffs and taxes bite".
"The big picture is that the economy has grown in only four of the last nine months and it's hard to see the economy strengthening much from here," she said.
Shadow chancellor Mel Stride said: "Since coming to office, Labour's choices have killed growth stone dead and there is still a long way to go to recover."
While there is an acknowledgement that the uncertainty from US tariffs poses threats to the economy, some experts believe it may also create opportunities for a the UK as a stable, growing trade-friendly economy.