Widely availableUseful for most prose input. Disable it only when spelling hints would be misleading, such as code or identifier entry.

Overview

The spellcheck attribute enables or disables the browser's built-in spelling assistance for editable content. It helps align spelling behavior with the type of content being entered.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
9
12
2
5.1
47
9.3
DOM API

The spellcheck property of the HTMLElement interface represents a boolean value that controls the spell-checking hint. It is available on all HTML elements, though it doesn't affect all of them.

9
12
2
5.1
18
5
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 3 item(s)
Limitation
  • This browser only partially implements this feature
Removed
  • This feature was removed in a later browser version (47)
Implementation note
  • Only supported on `<textarea>`.
Notes 2 item(s)
Removed
  • This feature was removed in a later browser version (9.3)
Implementation note
  • Only supported on `<textarea>`.

Syntax

HTML
<!-- enable spellcheck --> <textarea spellcheck="true">Enter text...</textarea> <!-- disable spellcheck for code input --> <input type="text" spellcheck="false" placeholder="enter code">

Live demo

Prose versus codes

Enable spellcheck for natural language and disable it for identifiers or part numbers.

PreviewFullscreen

Editable surfaces

Compare spellcheck behavior in contenteditable regions with different purposes.

PreviewFullscreen

Form guidance card

Document when turning spellcheck off improves the input experience.

PreviewFullscreen

Use cases

  • Message fields

    Keep spellcheck on for comments, emails, and other prose-heavy input where correction suggestions help users type faster.

  • Code-like input

    Turn spellcheck off for usernames, product codes, or snippets where dictionary suggestions create noise.

Cautions

  • Spellcheck quality varies by language and browser, so do not treat it as a validation system.
  • Turning it off globally can remove helpful support from users who benefit from writing assistance.

Accessibility

  • Spellcheck can be a meaningful writing aid for many users with dyslexia or cognitive load concerns.
  • If you disable it, make sure the field type genuinely benefits from fewer automatic suggestions.

Powered by web-features