Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 want to encode a file into android base64. Android's sdk has a utility method that does this. I should be able to avoid doing any Android programming to solve this. There are utilities for windows that can do this as well.

For my Mac, I've tried using the base64 shell command from

It is not giving me usable results, and it inserts spaces and newlines. Also the output files seem to have far too few characters.

Also, the library method in the Android sdk and the windows utility have an optional offset for the base64 which it would be nice to be able to use.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.