How to write a great code of conduct

Your community deserves the best

If you have attended a school, gone to an event, or joined an online group, you have participated in communities governed by codes of conduct. Depending on the organization, codes of conduct may also be called community guidelines or harassment policies. No matter the title, they will all contain similar information about the values of the community and how to hold it accountable to those values.

As an official or unofficial community leader, you have the power and responsibility to make your community better by crafting and sharing a code of conduct. As a community member, codes of conduct should empower you. You have the right to be safe and treated fairly in your community. If you participate in communities that do not have these policies, speak up! Share this article; encourage community leadership to write a code of conduct or draft one yourself and submit it to them.

Want one-on-one help writing your code of conduct? Let’s talk.

Understand Your Community

  1. What is the make up of your community? What types of people come together within it?
  2. Who is in the majority and who is in the minority? What groups or people are marginalized within your community?
  3. What are your community’s values? Are these well known throughout the community?
  4. What challenges has your community faced in the past? What challenges do you anticipate facing as you grow?
  5. How does your community interact? Examples include: In-person, through your event’s app, on Twitter through the event hashtag, in an official or unofficial Facebook / Slack group, etc.

Use these answers to define your community at the beginning of the code of conduct and define violations, enforcement, and methods of reporting as detailed below.

We recently developed a code of conduct for the Tech Ladies community. It begins with:

Tech Ladies is a community for cis women, trans women, and nonbinary people. We urge our members to not assume the pronouns of others. While many of our members use she/her, for example, some use they/them. Remember not to judge people’s gender based on their photos or names they use on Facebook.

Define violations of your policy

Again, you do not want to just copy-paste another code of conduct here. The language and the number of examples you use will vary based on your community values and past problems you have experienced. For example, some communities will want to list out examples of harassment if there have been issues with people not realizing certain behaviors were violations. For in-person events, include policies about photography (like asking someone before photographing) and more casual physical contact (like hugging). For online spaces, ensure you have a policy about sharing posts outside the community, if you are in a closed community like an email list, Facebook group, or Slack community.

We developed the code of conduct for Tekko, an annual anime convention in Pittsburgh. Tekko proudly displayed their policies throughout the con.

Define methods of reporting

  • For events, best practice is to have multiple methods of reporting: in-person in various locations, by phone, and through email or an online form.
  • For online groups, people can report through a private message on the group’s platform, an anonymous Google form, or an email list. Encourage people to screenshot evidence of the issue in case it is deleted.

Providing an anonymous way of reporting, like a form, will likely increase reports. However, it isn’t always possible to maintain the anonymity as you may require follow-up information in order to resolve the issue. If you are using a hotline, try to have it staffed by someone working your event and not staff from the event location. This ensures that when people call the hotline they are speaking with someone familiar with the event, its terminology, and who will be respectful of people’s pronouns and other concerns. Always ensure that methods of reporting are widely publicized.

Define enforcement

  • Define what will happen if someone violates a policy.
  • Define under what circumstances someone will get a warning, how many warnings they will receive, under what circumstances they will get kicked out, and if they will be allowed back after a certain period of time.
  • Make sure to leave room for your own discretion as some egregious violations should result in immediate removal.

Share Widely

  • Printing the entire text or a quick link on event badges
  • Posting around the event area, in the exhibitor hall, in bathroom stalls, in panel rooms, etc.
  • Pinning your post to your Facebook group or putting it in the group description
  • Putting it in a prominent part on your website
  • Referencing your code of conduct when your group has a difficult discussion
The Tech Ladies Facebook group has their code of conduct as a pinned post

Your code of conduct should be a living document that changes as your community changes. If you expand from a small conference to a conference of thousands, adjust your policy to account for the changes. As people report incidents, ensure that these case are covered by your policy and continue to adjust.

Good luck!

Christopher, Gia, and Paul volunteering at VidCon 2017.

Uplift is a nonprofit dedicating to combating sexual violence in online communities through education and advocacy. We have worked on codes of conduct for conventions like Tekko and Book Riot Live, and online communities like Tech Ladies. We are happy to discuss editing or writing your code of conduct, reach out: or at


Stories, campaigns, and initiatives by Uplift, a nonprofit…


Stories, campaigns, and initiatives by Uplift, a nonprofit dedicated to combatting sexual abuse, emotional manipulation, and other forms of violence in online communities. Submissions are welcome.

Uplift: Online Communities Against Sexual Violence

Written by

We are Uplift, a non-profit formed to combat sexual abuse, emotional manipulation, and other forms of violence in online communities.


Stories, campaigns, and initiatives by Uplift, a nonprofit dedicated to combatting sexual abuse, emotional manipulation, and other forms of violence in online communities. Submissions are welcome.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store