Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I took someone's advice and started encoding my image sources, but Google doesn't seem to be able to decode them.

I probably did something wrong, because basically Google is taking the full path as the image's name.

See this page as an example. If you go on the top most thumbnail and do "Save as", you will see the path is not being decoded.

Should I stop decoding or am I doing it wrong? Should I encode only the image name itself?


share|improve this question

Just in case someone is looking for the answer, you only need to encode the actual image name. What was going wrong is that I was encoding the / thus removing its intended meaning.

Remember to only encode parts that can be invalid, such as image names, query string, etc.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.