Enter a long URL to shorten:

 

Show Options

 

gtWelcome to lil.cx

lil.cx is a free web service that allows people to generate very short URLs from long, not easy to communicate URLs.
This service is free to use and will do the same kind of service than say tinyurl.com: only the generated URL will be even shorter!

gtAn example

The URL:

http://images.google.com/images?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&um=1&sa=1&q=flowers&btnG=Search+images&aq=f&oq=

Was turned into:

Are you sure you still want to use long URLs?

gtHide URL

Another typical use of lil.cx and other similar service like tinyurl.com is the possibility to hid affiliate links or that people are generally less keen to click on. With lil.cx this will be completely transparent to end users!

gtAPI

lil.cx provides two powerful API for web developers.
To use the the tinyurl compatible API, send a GET request to http://lil.cx/api-create.php.
Example: http://lil.cx/api-create.php?url=http://www.google.com

To use the lil.cx complete API, send a POST request to http://lil.cx/api.php.

Example 1: create a simple URL redirection

	<request>
		<type>ShortenURL</type>
		<url>http://www.google.com<url>
		<shorturl/>
	</request>
A typical server response:
			
	<response>
		<result>1</result>
		<message>Redirection to http://www.google.com created.</message>
		<url>http://lil.cx/Ce8jQnl0</url>
	</response>

Example 2: create a URL redirection with custom code

	<request>
		<type>ShortenURL</type>
		<url>http://www.google.com<url>
		<shorturlgoog<shorturl>
	</request>
A typical accepted server response:
			
	<response>
		<result>1</result>
		<message>Redirection to http://www.google.com created.</message>
		<url>http://lil.cx/goog</url>
	</response>
A typical rejected server response (because alias is already taken):
			
	<response>
		<result>0</result>
		<message>Short URL code goog is not available.</message>
	</response>

Example 3: decode a URL (nb: the url tag can be the full lil.cx url or the code alias only).

		
	<request>
		<type>DecodeShortURL</type>
		<url>http://lil.cx/goog</url>
	</request>
A typical accepted server response:
			
	<response>
		<result>1</result>
		<message>Decoded URL http://lil.cx/goog successfully.</message>
		<url>http:www.google.com</url>
	</response>
A typical code note found response:
			
	<response>
		<result>0</result>
		<message>URL http://lil.cx/goog does not exist.</message>
	</response>

gtContact

For reports, questions, or anything, please contact @lil.cx

Use lil.cx now!

starPermanent

lil.cx creates permanant URL redirections and serves tens of thousands of hits per day.

starReliable

lil.cx's hoster is guarenteeing 99.9% uptime!

starUser friendly

You can choose your own lil.cx URL.

starPreview

Add "/preview" at the end of lil.cx URL to preview it!
Example: http://lil.cx/flowers/preview

Developer Tools

starTinyURL

lil.cx provides a TinyURL-like API at /api-create.php.

starXML API

lil.cx also provides a simple XML API; reading post requests at /api.php.

starREST

Still not enough? We plan on adding a bit.ly compliant REST API in the near future!