Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7778913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:31:06+00:00 2026-06-01T18:31:06+00:00

I am looking for a url encoding method that is most efficient in terms

  • 0

I am looking for a url encoding method that is most efficient in terms of space. Raw binary (base2) could be represented in base16 which is smaller and is url safe, but base64 is even more efficient. However, the usual base64 encoding isn’t url safe….

So what is the smallest encoding method that is also safe for URLS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:31:07+00:00Added an answer on June 1, 2026 at 6:31 pm

    You can use a 62 character representation instead of the usual base 64. This will give you URLs like the youtube ones:
    http://www.youtube.com/watch?v=0JD55e5h5JM

    You can use the PHP functions provided in this page if you need to map strings to a database numerical ID:

    http://bsd-noobz.com/blog/how-to-create-url-shortening-service-using-simple-php

    Or this one if you need to directly convert a numerical ID to a short URL string:
    http://kevin.vanzonneveld.net/techblog/article/create_short_ids_with_php_like_youtube_or_tinyurl/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking around JQuery libraries for the URL hash, but found none that
I am looking to setup a Server that accepts a URL with a few
I'm looking for a way to target this jquery only at src url's that
In looking at URL safe base 64 encoding, I've found it to be a
Is there a way to manage URL encoding with ActiveResource? Specifically I am looking
I am looking for url encoding tips for SEO compliant site. I have a
We're using a file system/url safe variation of base64 encoding such that: = replaced
I am looking to implement a similar url as stackoverflow to an eshop: http://wwww.shop.com/products/123123/product-name
I am looking to implement a system to strip out url's from text posted
I'm looking for a decent regex to match a URL (a full URL with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.