The Ultimate Google Places Autocomplete JavaScript Library

A lightweight, zero-configuration vanilla JavaScript library that brings powerful Google address search to any web application—with full accessibility, security, and cost optimisation built in.

Powerful Features Out of the Box

Fully Accessible

Compliant with WAI-ARIA standards, featuring complete keyboard navigation and screen reader support.

Secure

Safely renders all suggestions with built-in XSS protection, ensuring your application remains secure.

Cost-Effective

Automatically handles session tokens to manage API costs.

Debounced Input

Limits API calls while the user is typing to save requests.

Customisable

Easily customise appearance using your own styles, CSS classes, or our flexible configuration options.

Framework Agnostic

Works seamlessly with React, Vue, Svelte, Angular, or vanilla JavaScript.

Looking for a Svelte Solution?

This library is also available as a native Svelte component: places-autocomplete-svelte. It provides the same robust features with seamless Svelte integration, including reactive bindings and component composition.

Live Demo

Experience the component in action. Start typing any address (this demo is configured for UK locations) to see intelligent autocomplete suggestions. Select a place to view the complete response data returned by the Google Places API.

powered by
powered by Google

Getting Started

Choose your preferred installation method: install via npm for modern build tools (Vite, Webpack, etc.), or use our CDN links for quick integration into static HTML pages. Both methods provide the same features and performance.