54

There is a link to refer to a Stack Overflow question, but does SO provide a shortened URL?

4
  • 3
    http://stackoverflow.com/q/14405584 What is "SF" though?
    – user159834
    Commented Jan 18, 2013 at 18:52
  • 1
    @WesleyMurch Server Fault?
    – Bart
    Commented Jan 18, 2013 at 18:59
  • 3
    Funny I just noticed today Amazon has a short url. Like amzn.com/B0028BDM72 It would be COOL if the share button on StackOverFlow sites could emit something like stkovrflw.com/q/2574 This makes is easy to consume these urls into mobile devices
    – Mr. Young
    Commented Jan 18, 2013 at 23:43
  • Like Hyperlinking?
    – Red
    Commented Jul 26, 2020 at 1:22

3 Answers 3

61

You can remove the whole part after the question ID (in the case of this question, the /is-there-a-way-to-shorten-the-stack-overflow-urls).

The longer, more manual way:

The formula for shortening a question is sitename + .com/q/ + question id

This question's full URL is http://meta.stackexchange.com/questions/164194/is-there-a-way-to-shorten-the-stack-overflow-urls

The shortened version is http://meta.stackexchange.com/q/164194.

Similarly, you can do this with any other site in the SE network:

http://cooking.stackexchange.com/questions/2574/why-add-salt-to-the-water-when-cooking-pasta

becomes

http://cooking.stackexchange.com/q/2574.

The fewer-things-to-delete way:

Use the "share" link underneath any question or answer. The URL you see in the pop-up follows the formula above, but it appends your user ID to the end (so that you can get badges like Announcer). You can copy & paste the whole URL in the "share" box, or strip your user ID from the end. Either way, it's short.

enter image description here

2
  • And if you're not logged in the "share" link doesn't even have a user ID to delete.
    – Servy
    Commented Jan 18, 2013 at 19:36
  • I wanted to shorten my user page link and the same idea applies: sitename/u/<user_id> instead of the full sitenames/user/<user_id>/username
    – datchung
    Commented Oct 5, 2023 at 3:00
5

Some StackExchange general and community pages can be reached by STK's own URL shortener, http://s.tk/. (see What shortened URLs are available through s.tk?)

For questions, however, this seems not to work.

-7

You could always use http://tinyurl.com/ if you want to shorten a URL for sharing.

If you want to name your url w/ Markdown you can always use brackets: [Linking in StackOverflow] (https://stackoverflow.com/editing-help#links)

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .