The union produced the 10-point guide in response to the growing trend among mainstream media of publishing newsworthy photographs and video produced by the public.
Media organisations will be encouraged to sign up to the code and 'educate' their readers about it.
The code was drafted by freelance journalist Adam Christie of the union's New Media Industrial Council, who urged all media organisations to adopt the guidelines.
"I hope that media organisations will now include guidance on their websites about the safeguards that all contributors should observe," he told journalism.co.uk.
"The guidance should, at least, cover safety, taste and decency, directions to the laws that reporters must obey, accepting that these do vary from one country to another, with regards to privacy, liabilities and so on."
• The NUJ co-hosted a round table discussion on citizen journalism earlier this week at the Guardian Newsroom.
Free daily newsletter
- In-camera transitions, citizen reporting and interactive voice content: here is your weekly journalism news update
- City Bureau empowers citizens and bolsters local reporting with new tools
- How Hashtag Our Stories is helping citizen journalists tell better stories
- With local investigative journalism increasingly under threat, do we need new business models for news?
- 'More views, angles and perspective': Why community journalism may be the future of news