The North said the test had "greater explosive force" than the 2006 and 2009 tests that were widely seen as small-scale. Its KCNA news agency said it had used a "miniaturised" and lighter nuclear device, indicating that it had again used plutonium which is more suitable for use as a missile warhead.
North Korean leader Kim Jong-un, the third of his line to rule the country, has presided over two long-range rocket launches and a nuclear test during his first year in power, pursuing policies that have propelled his impoverished and malnourished country closer to becoming a nuclear weapons power.
US President Barack Obama labelled the test a "highly provocative act" that hurt regional stability and he and other states that are members of UN Security Council pressed for new sanctions on the isolated country.
"The danger posed by North Korea's threatening activities warrants further swift and credible action by the international community. The United States will also continue to take steps necessary to defend ourselves and our allies," Obama said.
The Security Council will meet later on Tuesday to discuss its reaction to the test, although North Korea is already one of the most heavily sanctioned states in the world and has few external economic links that can be targeted.
Japanese Prime Minister Shinzo Abe said the test was a "grave threat" that could not be tolerated. UN secretary general Ban Ki-moon said the test was a "clear and grave violation" of UN Security Council resolutions.
China, which has shown signs of increasing exasperation with its neighbour, repeated calls for the "denuclearisation" of the Korean peninsula and urged its client state and others to react calmly, while pressing Pyongyang not to ramp up tension further, something the North had threatened in the run-up to the test.
"We strongly urge North Korea to abide by its non-nuclear commitment and not to take any further actions that would worsen the situation," it said in a statement.
China is a permanent member of the Security Council. South Korea, still technically at war with the North after the 1950-53 civil war ended in a mere truce, said the size of the seismic activity indicated a nuclear explosion slightly larger than the North's two previous tests at 6-7 kilotonnes, although that is still relatively small. The Hiroshima bomb was around 20 kilotonnes.
The US Geological Survey said that a seismic event measuring 5.1 magnitude had occurred on Tuesday, with North Korea later confirming the nuclear test. "It was confirmed that the nuclear test that was carried out at a high level in a safe and perfect manner, using a miniaturised and lighter nuclear device with greater explosive force than previously, did not pose any negative impact on the surrounding ecological environment," KCNA said.
Despite China's tame response, it likely to be a major embarrassment for Beijing, the North's sole major economic and diplomatic ally. "The test is hugely insulting to China, which now can be expected to follow through with threats to impose sanctions," said Mark Fitzpatrick of the International Institute for Strategic Studies think tank.
North Korea trumpeted the announcement on its state television channel to patriotic music against the backdrop of an image of its national flag. It linked the test to its technical prowess in launching a long-range rocket in December, a move that triggered the UN sanctions, backed by China, that Pyongyang said prompted it to take Tuesday's action.
The North's ultimate aim, Washington believes, is to design an intercontinental ballistic missile capable of carrying a nuclear warhead that could hit the United States. North Korea says the programme is aimed merely at putting satellites in space.
North Korea used plutonium in previous nuclear tests and prior to Tuesday there had been speculation it would use highly enriched uranium so as to conserve its plutonium stocks as testing eats into its limited supply of the material that could be used to construct a nuclear bomb.
Despite its three nuclear tests and long-range rocket tests, North Korea is not believed to be close to manufacturing a nuclear missile capable of hitting the United States. South Korea's Yonhap news agency said Pyongyang had informed China and the United States of its plans to test on Monday, although this could not be confirmed.
When North Korean leader Kim (30) took power after his father's death in December 2011, there were hopes he would bring reform and end Kim Jong-il's "military first" policies. Instead, the North, whose economy is smaller than it was 20 years ago and where a third of children are believed to be malnourished, appears to be trapped in a cycle of sanctions followed by further provocations.
"The more North Korea shoots missiles, launches satellites or conducts nuclear tests, the more the UN Security Council will impose new and more severe sanctions," said Shen Dingli, a professor at Shanghai's Fudan University. "It is an endless, vicious cycle."
But options for the international community appear to be in short supply, as North Korea is already one of the most heavily sanctioned states on earth. Tuesday's action appeared to have been timed for the run-up to February 16 anniversary celebrations of Kim Jong-il's birthday, as well as to achieve maximum international attention.
Significantly, the test comes at a time of political transition in China, Japan and South Korea, and as Obama begins his second term. He will likely have to tweak his State of the Union address due to be given on Tuesday.
Japanese Prime Minister Shinzo Abe is bedding down a new government and South Korea's new president, Park Geun-hye, prepares to take office on February 25.
China too is in the midst of a once-in-a-decade leadership transition to Xi Jinping, who takes office in March. Both Abe and Xi are staunch nationalists. The longer-term game plan from Pyongyang may be to restart talks aimed at winning food and financial aid.
China urged it to return to the stalled "six-party" talks, hosted by China and including the two Koreas, the United States, Japan and Russia. Its puny economy and small diplomatic reach mean the North struggles to win attention on the global stage – other than through nuclear tests and attacks on South Korea, last made in 2010.
"Now the next step for North Korea will be to offer talks … any form to start up discussion again to bring things to their advantage," said Jeung Young-tae, senior research fellow at the Korea Institute for National Unification in Seoul.
European Union member Denmark called on China to step up to the plate and use its influence at the Security Council to rein in its ally, using unusually blunt language.
"This deserves only one thing and that is a one-sided condemnation," said Foreign Minister Villy Sovndal. "North Korea is likely the most horrible country on this planet." – Reuters