What is a .SQL file?

SQL files hold database commands, often a full database backup (a dump) that can be loaded back into MySQL, PostgreSQL or similar. Here's how to open and send it on any device.

Short answer

SQL files hold database commands, often a full database backup (a dump) that can be loaded back into MySQL, PostgreSQL or similar.

Send a file now, free

Loading the transfer tool…

How to open a .SQL file

DeviceHow to open it
WindowsNotepad or any text editor (built in)
MacTextEdit (built in)
iPhone and iPadFiles app preview (built in)
AndroidFiles app or any text editor app
Advertisement

Quick facts

Full nameSQL script or dump
TypeData or text file
Typical size1 KB to 100 GB
Shrinks when zipped?Yes

Common problems with .SQL files

  • The file opens as one long line because of different line endings.
  • Special characters look wrong because of the text encoding.

Converting a .SQL file

Text-based files open in any text editor. Specialist apps can import them and save in other formats when needed.

  • .TXT: TXT holds plain text with no formatting.
  • .MD: MD files hold text written in Markdown, a simple formatting syntax used for README files, notes and documentation.
  • .JSON: JSON is a text format for structured data, used by web APIs, apps and configuration files.
  • .XML: XML is a text format for structured data and documents, used in feeds, configuration and many office formats.
  • .HTML: HTML files are web pages.

How to send a .SQL file

  1. Open TransferFiles.net on the device that has the .sql file.
  2. Pick the file, or drag it onto the page on a computer.
  3. Share the link or QR code with the receiver. Add a PIN if the file is private.
  4. Keep the page open until both screens show Verified identical.

Tip: Database dumps are text and shrink a lot when zipped. They may contain personal data, so lock the link with a PIN.

More detail: sending data or text file files.

Send a file now

Free, no sign-up, no size limit. Works on any phone or computer.

Open the transfer tool

Will a .SQL file fit in email and chat apps?

FileSizeGmailWhatsAppDiscordTelegramSlackTransferFiles
Small .sql file1 KBYesYesYesYesYesYes
Large .sql file100 GBNoNoNoNoNoYes

Email limits are counted after encoding, which adds about a third, so we use 75% of the stated limit. WhatsApp and Telegram figures are for files sent as documents. Free plans, checked November 2026. See every limit on our limits page or check your own file with Will it fit?

Finding and sending a .SQL file on each device

DeviceHow to pick a .sql fileWhere the receiver finds it
iPhoneTap Choose files, then pick Photo Library for camera-roll photos and videos, or Browse for anything in the Files app.the Files app, in the Downloads folder (Safari lets you pick iCloud Drive or On My iPhone in Settings › Apps › Safari › Downloads).
AndroidTap Choose files; Android offers your gallery, Files and any cloud apps you have installed.the Downloads folder, which you can open from the Files by Google app or your phone's My Files app.
Windows PCClick Choose files or Folder, or drag files and folders from File Explorer onto the drop zone. Ctrl+V pastes copied files too.your Downloads folder (C:\Users\you\Downloads). For files over 200 MB, Chrome and Edge offer to write the file straight to any folder you choose.
MacClick Choose files or Folder, or drag from Finder onto the drop zone. Cmd+V pastes copied files too.your Downloads folder. In Chrome and Edge, files over 200 MB can be written straight to any folder; Safari assembles the file in memory first.

Frequently asked questions

On Windows: Notepad or any text editor (built in). On Mac: TextEdit (built in). On iPhone: Files app preview (built in). On Android: Files app or any text editor app.

Yes. This format isn't compressed, so zipping it usually makes it noticeably smaller.

Use a direct transfer. Open TransferFiles.net, pick the file and share the link. There's no size limit, no account, and the receiver gets the exact original.

Files app preview (built in).

Files app or any text editor app.

TextEdit (built in).

Open files only from people you trust, and keep your device and apps updated. TransferFiles.net confirms the file arrived exactly as sent.