Let φ : G → H be a group homomorphism such that H is a totally disconnected locally compact (t.d.l.c.) group and the image of φ is dense. We show that all such homomorphisms arise as completions of G with respect to uniformities of a particular kind. Moreover, H is determined up to a compact normal subgroup by the pair (G, φ −1 (L)), where L is a compact open subgroup of H. These results generalize the well-known properties of profinite completions to the locally compact setting.All t.d.l.c. completions arise as completions with respect to a certain family of uniformities.Definition 1.2. Let G be a group and let S be a set of open subgroups of G. We say that S is a G-stable local filter if the following conditions hold:(a) S is non-empty; (b) Any two elements of S are commensurate; (c) Given a finite subset {V 1 , . . . , V n } of S, then n i=1 V i ∈ S, and given V ≤ W ≤ G such that |W : V | is finite, then V ∈ S implies W ∈ S; (d) Given V ∈ S and g ∈ G, then gV g −1 ∈ S.Each G-stable local filter S is a basis at 1 for a (not necessarily Hausdorff) group topology on G, and thus, there is an associated right uniformity Φ r (S) on G. The completion with respect to this uniformity, denoted byĜ S , turns out to be a t.d.l.c. group (Theorem 3.9); we denote by β G,S : G →Ĝ S the canonical inclusion homomorphism. All t.d.l.c. completions moreover arise in this way. Theorem 1.3 (see Theorem 4.3). If G is a topological group and φ : G → H is a t.d.l.c. completion map, then there is a G-stable local filter S and a unique topological group isomorphism ψ :We next consider completion maps φ : G → H where a specified subgroup U of G is the preimage of a compact open subgroup of H. In this case, there are two canonical completions of G such that U is the preimage of a compact open subgroup of the completion: the Belyaev completion, denoted byĜ U , and the Schlichting completion, denoted by G/ /U . These completions are the 'largest' and 'smallest' completions in the following sense.