We prove an embedding into an Orlicz space for irregular John domains when the irregularity is controlled by a logarithmic type function. By constructing an example we show that the embedding is essentially sharp.