Most nationalities do not need a visa. If you need a visa you will need to apply at a China embassy.
Visa are required for nationals from Afghanistan, Angola, Armenia, Azerbaijan, Bangladesh, Belarus, Burundi, Cambodia, Cameroon, Congo republic, Congo (DRC), Cote d'Ivoire, Cuba, Eritrea, Ethiopia, Georgia, Ghana, Iran, Iraq, Kazakhstan, Korea (North), Kyrgystan, Laos, Lebanon, Liberia, Libya, Moldova, Myanmar, Nepal, Nicaragua, Nigeria, Pakistan, Palestine, Panama, Senegal, Sierra, Leone, Solomon Islands, Somaloa, South Sudan, Sri Lanka, Syria, Tajikistan, Togo, Turkmenistan, Tuvalu, Uzbekistan and Vietnam.
Visas for Hong Kong are handled by Chinese Embassies.
Visa requirements Hong Kong
Foreign consulates in Hong Kong