reddit is a website about everything

powered by community, democracy, and you.

learn more ›

put reddit.com buttons on your site

the reddit button is the smart way to get your content submitted to and discussed on reddit. pick the button you like from below, and then copy/paste the code into your HTML editor.

commonly used buttons

use one of these buttons to quickly add reddit links to your site, or see below for more options.

buttons with points

customizing the look of your buttons

the buttons with points have three additional options.

Example:

<script type="text/javascript" src="//www.reddit.com/buttonlite.js?i=1&styled=off&url=foo.com&newwindow=1"></script>

simple interactive button

put this code on your page:

<script type="text/javascript" src="//www.redditstatic.com/button/button1.js"></script>

and you'll get something like this:

more interactive buttons

interactive button advanced settings

  • specify a url
    useful in places like blogs, where you want to link to the post's permalink

    <script type="text/javascript">reddit_url='[URL]'</script>
  • specify a community to target

    <script type="text/javascript">reddit_target='[COMMUNITY]'</script>
  • specify a title

    <script type="text/javascript">reddit_title='[TITLE]'</script>
  • open links in a new window

    <script type="text/javascript">reddit_newwindow='1'</script>
  • specify the color

    <script type="text/javascript">reddit_bgcolor='[COLOR]'</script>
  • specify a border color

    <script type="text/javascript">reddit_bordercolor='[COLOR]'</script>

Example:

to make this button:

use this code:

<script type="text/javascript">
  reddit_url = "//www.reddit.com/buttons";
  reddit_title = "Buttons!";
  reddit_bgcolor = "FF3";
  reddit_bordercolor = "00F";
</script>
<script type="text/javascript" src="//www.redditstatic.com/button/button3.js"></script>

more badges and buttons