  We explore boundedness properties of kernel integral operators acting on
rearrangement-invariant (r.i.) spaces. In particular, for a given r.i. space
$X$ we characterize its optimal range partner, that is, the smallest r.i. space
$Y$ such that the operator is bounded from $X$ to $Y$. We apply the general
results to Lorentz spaces to illustrate their strength.
