We prove that each analytic set in ℝⁿ contains a universally null set of the same Hausdorff dimension and that each metric space contains a universally null set of Hausdorff dimension no less than the topological dimension of the space. Similar results also hold for universally meager sets. An essential part of the construction involves an analysis of Lipschitz-like mappings of separable metric spaces onto Cantor cubes and self-similar sets.