You don't need to use link shorteners on Mastodon. All links count as 23 characters towards your posts's maximum size, no matter how long the link really is.

By avoiding link shorteners, you are also protecting people's privacy and reducing the risk of link rot.

(There is a bug on the official iPhone/iPad app that means links are counted as their true length instead of 23, which is yet another reason to switch to a third party app such as Ice Cubes or Mona or Ivory.)

#FediTips

p.s. People asking "Why 23 characters?", it's because a long time ago on Twitter links were counted as 23 characters by Twitter replacing all posted links with their own link shorteners (which meant Twitter could track what people clicked). These shorteners were always 23 characters long.

Mastodon provided a more privacy-friendly alternative to this by leaving the links intact without a shortener, but still only counted them as 23 characters.

p.p.s. Google announced today that they are shutting down their link shortener service goo.gl. From 2025, goo.gl shortened links will no longer work:

https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/

This is why link shorteners cause link rot, because eventually link shortener services close down, even ones run by megacorporations, and all their links break.

Your link will survive a lot longer if you avoid using shorteners. You don't need shorteners on Mastodon, all links count as 23 characters anyway.

Google URL Shortener links will no longer be available [updated]- Google Developers Blog

Understand how you will be impacted by our decision to turn off the serving portion of Google URL Shortener.

@FediTips I heard about this, yet another product google trashes.

@FediTips Flipping heck.

I used goo.gl a lot back in the day.

@FediTips can't wait for 90% of the internet to inevitably break down due to some crucial service using a goo.gl link somewhere
Google URL Shortener links will no longer be available [updated]- Google Developers Blog

Understand how you will be impacted by our decision to turn off the serving portion of Google URL Shortener.

@mjdxp @FediTips

I often use link shorteners in email. but mail services often use link lengtheners, which which means you have screenfuls of links, and makes it look like spam, which of course it is, so it gets dumped in the "Junk and Suspicious Mail" folder where I never see it.

But at least I've never used a Google link shortener.

@FediTips i didn't expect to accidentally predict a massive outage and for it to actually happen, except due to a different company lmao
@FediTips A lot of authors use the ones that provide a “country sensitive” shortened link. Sharing book links would be messy without those, which fortunately were not Google.
@FediTips But the CW description text length counts into the whole toot characters limits. Same as the "mention-link" of someone. They should be excluded from those limits, imho.

@FediTips

Yes although it wasn’t completely in order to track user clicks

It was also because each tweet was much shorter in maximum allowed length (this goes back to SMS), and every keystroke (character) was useful while link length was, and still is, hugely variable

(This also matters to a lesser extent on the fediverse, where post length can be much longer while still being limited, but this way of counting makes it moot)

@FediTips I still hate the mastodon limit. It's a bit too short imo. Some people love it. I still find it limited.

I can't find an easy way to increase the 500 char limit in my mastodon instance as a site owner.

How to increase the character limit for toots in Mastodon – Draklyckan

@pa79 @FediTips I'm using docker, so that won't work. Every time I restart the docker container I would need to re-apply that patch. It's stupid.
@melroy @FediTips I can imagine being linked to database setup… probably you need to change the schema before doing the change? But of course @Gargron should know where to change things…
@juandesant @FediTips @Gargron I think the problem is that I need to manually change the Ruby on Rails code.
@melroy @FediTips As far as I know, you need to patch the source code.
@mrdk @FediTips Yes, but I'm running Mastodon in a docker container. So no thanks.
@melroy @FediTips huh. I got something like 3k characters to work with in my posts...
@oceaniceternity @FediTips Your instance is not the official Mastodon instance. sakurajima.moe is running Glitch... https://glitch-soc.github.io/docs/
Introduction | Mastodon Glitch Edition

@melroy @FediTips
Why not setting up a Friendica instance instead of a Mastodon one? You would still be part of the Fediverse and without a 500 char limit.
Quote from the Features section of their website:
" “Unlimited” text length – many sites will allow up to 200k characters per post."
https://friendi.ca/
friendica – A Decentralized Social Network

@antdesros

Friendica is great!

...or a Glitch Mastodon or Hometown Mastodon instance, they allow the admins to easily adjust the limit too.

@antdesros @FediTips Yea. I'm actually running mastodon for a very long time now. And toot.melroy.org even longer ago. So it's just for legacy reasons. Mastodon glitch maybe makes more sense, since that should be easier to migrate towards. Right?

@melroy @antdesros

Glitch should be much easier to migrate to, and you can migrate back to vanilla if you change your mind.

@melroy

There's deliberately no easy way of increasing it, unfortunately, because the lead developer didn't like the idea of larger limits:

https://github.com/mastodon/mastodon/pull/5697#issuecomment-345078582

...they could technically do this very easily, but they choose not to 😞

Make character limit configurable by lambadalambda · Pull Request #5697 · mastodon/mastodon

This adds a character limit configurable by setting and environment variable. It also adds the character limit to the initial state and instance endpoint, so clients can use it to set the correct l...

GitHub
@FediTips yeah. I'm considering mastodon glitch for sure now.

@FediTips

If we can disregard the link length and count it as an arbitrary 23 characters..... why not count it as 0 characters? Why have a limit at all?

@mez

Some Fediverse server types don't have a limit (WordPress, Friendica etc).

Some unofficial variations of Mastodon have an adjustable limit (Glitch Mastodon, Hometown Mastodon etc).

But the lead developer of the official version of Mastodon just prefers a 500 character limit and refuses to allow it to be easily adjusted:

https://github.com/mastodon/mastodon/pull/5697#issuecomment-345078582

Make character limit configurable by lambadalambda · Pull Request #5697 · mastodon/mastodon

This adds a character limit configurable by setting and environment variable. It also adds the character limit to the initial state and instance endpoint, so clients can use it to set the correct l...

GitHub
@FediTips
So the question has now become:
Why Twitter chose a 23 characters length for their link shorteners?
(But I do not need an answer for this one.)

@FediTips I wanted to see if I can cheese that like this... apparently not lol

I could cheese the character counter but not the submission

@StaticR @FediTips serious question: what does cheese mean in this context??

@kev broadly speaking, "cheesing" something means achieving a goal in a way that's not intended but doesn't technically doesn't break any rules.

Not entirely sure of the origin of the term but I presume it's called cheese because cheese has holes in it, and you just found a loophole to achieve your goal.

It may also apply to strategies and methods that technically achieve the goal in an easy way that's very inefficient or falls apart easily which is more the case here.

@StaticR Huh thanks! Literally never heard that before! I actually assumed it was an autocorrect for "cheat" till I noticed you'd said it twice!
@kev well its not too far off, it kinda is a sort of cheat, just one that stays within the rules.
@kev @StaticR For a very long time I thought "rotund" was a typo of "round". Turns out it's not that far off.
@kev getting around an intentional restriction - it's twitch.tv game streamer lingo (: i.e. "cheesing a section of this game by jumping over an invisible barrier" - a synonym can be "to skip" or "skips" - "finding cheese in game levels is a favorite past time of mine"

@kev @StaticR

Guessing they mean cheat it, try to get a message above 500 characters in a 500 char limit by using very long links that contain "hidden" messages.

But, it doesn't work because the link can only be 500 characters maximum.

@FediTips genq: why 23 specifically?
@FediTips Any particular reason why it's 23? Seems a bit arbitrary.
@doq @FediTips seems like a good way to punish link shortening. The smallest url is around 13 characters to be useful. So a margin of 10 characters seems like a good around number.
23 enigma - Wikipedia

@doq @FediTips I'm more wondering "why 500"? Twitter originally had the bumper-sticker-length text limit because of a technical limitation of SMS. Now it's just arbitrary. A printed page of text is about 2,000 characters - that feels like an absolute bare minimum. I like Mastodon, but I usually don't post things because I can't figure out how to say what I wanted to say in as short and quippy enough of a way to make it fit.

@stevenaleach I think for text that long I'd consider a blog and linking to that.

Also 2000 is the content of about four posts in a thread, which I'd say is still pretty reasonable.

Opinion, of course 

@doq Yea, I guess I just wish federated microblogging would just drop the "micro" part. It disappoints me oh so greatly to be able to post a multi-megabyte image with no problem but to be limited to less than half a kilobyte of actual content. Just fold the text, show the top, and provide a "show more" to expand for stuff that's "too long". In need of a content size limit for my current project, I've decided to go with 64KB.
@doq Or how 'bout taking "a picture is worth a thousand words" literally? If the system has the storage and bandwidth capacity to handle pictures but somehow *not* to let the user posting that picture to write 1,000 words about it, then something is seriously wrong because those thousand words are gonna add up to way less data. Or how 'bout 500 character limit with pictures and links, but 2? 4? 64?K if you just need the space to *write* in? That would feel like a fair trade.
@stevenaleach @doq fwiw, the 500 limit is 100% a mastodon thing, not a "federated microblogging" thing. mastodon wasn't the first federated microblogging platform on this network, nor is it the only one. but it is the only one i know who has this limitation afaik. it has other limitations too that others don't have. if you're interested in what features are out there, and you can spare the time, you may want to try some other platforms.

@stevenaleach @doq

It is an arbitrary number which seemed to appeal to the lead dev. His explanation for hard coding 500 characters as the limit is here:

https://github.com/mastodon/mastodon/pull/5697#issuecomment-345078582

Make character limit configurable by lambadalambda · Pull Request #5697 · mastodon/mastodon

This adds a character limit configurable by setting and environment variable. It also adds the character limit to the initial state and instance endpoint, so clients can use it to set the correct l...

GitHub
@FediTips @doq I get it - it's what "microblogging" is, it's an expected format and etc. But would the UI feel be changed that much if there was just a subtle 'more' expander at the bottom of longer posts? I tend to prefer long-form content, and when I have an idea I want to write about, it's usually something I've been thinking about and refining in my head for weeks, months, or years, and it rarely fits in 500 words. I'd like to be ABLE to talk to folks similarly inclined on the #fediverse.
@stevenaleach @FediTips @doq
Maybe Friendica would be more suited to you. It's part of the Fediverse and doesn't have a 500 char limit.
Quote from the Features section of their website:
" “Unlimited” text length – many sites will allow up to 200k characters per post."
https://friendi.ca/
friendica – A Decentralized Social Network

@stevenaleach @FediTips
If you don't like Friendica, you can still choose a Glitch Mastodon or a Hometown Mastodon server with a higher limit.
https://fedi.tips/why-do-some-people-on-mastodon-and-the-fediverse-have-bigger-character-limits/
Why do some accounts on Mastodon and the Fediverse have bigger character limits? | Fedi.Tips – An Unofficial Guide to Mastodon and the Fediverse

An unofficial guide to using Mastodon and the Fediverse

@FediTips I was not aware of this bug in the iOS app, will see what I can do here 👍

@renchap

Brilliant, thank you! 🙏

Issue is here: https://github.com/mastodon/mastodon-ios/issues/647

[BUG] Post length is artificially limited by counting full length of url · Issue #647 · mastodon/mastodon-ios

Is there an existing issue for this? I have searched the existing issues Current Behavior A post is artificially limited by counting full length of url; if I post on the web app instead there is no...

GitHub

@FediTips

>(There is a bug on the official iPhone/iPad app that means links are counted as their true length instead of 23, which is yet another reason to switch to a third party app such as Ice Cubes or Mona or Ivory.)

Or just use the webpage. Seriously, the mobile web page for Mastodon works great. Unlike corporate sites that intentionally make the mobile page bad to cajole you into using the app, Mobile Web Mastodon is HIGHLY functional.

@FediTips Shorteners can help when reporting, since those text areas are limited to 1000 chars of plaintext (no hyperlinks). The savings add up if you include many urls. Even if you're not writing that much, really long urls can be made tidier.
@FediTips Unless you want to rickroll somebody! 
@FediTips Megalodon user checking in for #Android