wrapchar defaults to newline. The constants defined in Base64 can be OR-ed together to combine options, so you might make a call like this: String encoded = Base64. x