Escaping runs entirely in your browser — nothing is uploaded.
SQL string literals are delimited by single quotes, so any apostrophe in your data must be escaped or the statement breaks (and becomes injectable). The portable, standard rule is quote doubling: every ' becomes ''. This tool wraps your text and doubles the quotes for you, and reverses it — all in your browser.
The value O'Brien escapes to:
'O''Brien'Doubling quotes produces a valid literal, but the real defence against SQL injection is parameterized queries / prepared statements, which keep data out of the SQL text entirely. Use this tool for migrations, seed data and quick scripts — not as your app's input layer.
Quote doubling works everywhere (MySQL, PostgreSQL, SQLite, SQL Server, Oracle). MySQL additionally allows \' backslash escapes; PostgreSQL needs an E'' string for those. This tool emits the portable doubled-quote form on purpose.