TRUNCC is part of mtutils. There you can find its license and source code.


TRUNCC does not track you, nor does it use any other websites that could.


You can POST or GET a request to https://tyni.link/u/truncc/make_plain with the parameter lurl for the url you want to shorten. You can also optionally specify the surl paramter for the short url.


https://tyni.link/u/truncc/make_plain?lurl=https%3A%2F%2Ffsf.org Shorten a link to the Free Software Foundation's website
https://tyni.link/u/truncc/make_plain?lurl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ&surl=helloworld shorten a link with a custom short url
curl -L https://tyni.link/u/truncc/make_plain -d "lurl=https://voidlinux.org/download/" -d 'surl=best_linux_distro_download' Shorten a link using curl


The plaintext API returns JSON that looks something like this: { 'numerical_code': 0, 'code': 'all_good', 'short': 'helloe', 'revoke': 'cz5WKB~jJBl6sFpV2kWGK~AtH_VPkkhwm7f6cpVacNJnLlwDuxigYfqpDG1b9nZ1qPit~I8nOSyV50hHFjcxT3Wi-wzB' }
numerical_code if this is not zero, something went wrong.
code message describing what happened. Can be:
  • all_good
  • hacky (Short url uses characters that are not recommended)
  • invalid_surl
  • surl_too_long
  • autogen (Short url is auto-generated)
  • invalid_lurl
  • lurl_too_long
  • url_taken
short Either the short URL that you specified in the request, or a generated one
revoke Revoke token. You can revoke a URL by GETing or POSTing a request to https://tyni.link/u/truncc/revoke with the url and token parametres.