# How do you put spaces in \url? [duplicate]

The url I want to put in `\url{}` is http://www.maths.manchester.ac.uk/~peterf/MSc%20Examples%208.pdf

The `%20` in the url above are actually spaces. How can I type this in LaTeX so that it can be copied and pasted into a browser straight from the pdf?

-

## marked as duplicate by Martin Schröder, egreg, Stefan Kottwitz♦Jan 2 '13 at 14:52

Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button (`{}`). –  Claudio Fiandrino Jan 2 '13 at 13:49
I believe that the URL with `%20` is the safest mode for copy-paste. –  egreg Jan 2 '13 at 13:53
It is not difficult to find the duplicates. See the `Related` column on the right. –  kiss my armpit Jan 2 '13 at 13:56