How to break long URLs in Bibtex

Hello fellows,

today I would like to share some insights on URLs in a bibtex file and how to do a line brake for long URLs so they fit on the page.

Ok, a quick word why that is interesting:

I am currently writing my Master’s Thesis and had some troubles with my bibliography, here a screenshot so you can see what I mean:

long URLs do not properly wrap at line end

Here is what I did to get this:


and this is the bibtex entry:

author = "Clark, Sarah",
howpublished = "",
month = aug,
note = "Cited July 3rd 2012",
title = "{Gartner’s Hype Cycle places NFC at ‘Peak of Inflated Expectations’}",
url = "",
year = "2011"

So, as you can see in the screenshot above, the URL does not get broken. So how to fix that?

After reading this entries (, I checked the following file and found the characters where URLs are allowed to be wrapped to a new line (search for “\UrlBreaks”):

Since in my case there are a lot of “-” in the URL, I want latex to use them too to break lines. That can be done with this command, right below of “\usepackage{url}” (so actually I add “/” and “-“):


Here is how the result looks like:

URLs now get wrapped at line end

I hope this helps you.



29 thoughts on “How to break long URLs in Bibtex

  1. Thank you for providing this information, it helped me a lot !

    Another way without modifying “url.sty” and using the “hyperref.sty” package, is to put the following in the preemble of .tex file;


    This way, you can have hyper-references and URL breaks at the same time…

    Thanks again…

  2. Thank you so much, this is the only thing that has worked for me. Im handing in my thesis tomorrow, and I’m so happy to have fixed this first!

  3. Pingback: How to break long URLs in Bibtex | A Company Website Demo

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s