.TCL

TCL File

Tcl Script
Ask a question
QUICK ANSWER

A TCL file is a plain-text script written in Tcl (Tool Command Language), a scripting language created in 1988. To run it, install ActiveTcl on Windows or use the built-in tclsh on Linux and macOS, then execute "tclsh script.tcl" in a terminal. To view the source code without running it, open it in any text editor.

Developer: John Ousterhout (original); Tcl Core Team (ongoing, tcl-lang.org) Category: Developer Files Open standard MIME: text/x-tcl
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Aug 22, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the TCL file format?

A .tcl file contains source code written in Tcl (Tool Command Language), a dynamic scripting language created by John Ousterhout at the University of California, Berkeley in 1988. The file is plain text - typically UTF-8 in modern Tcl 8.1+ scripts, though legacy scripts may use ASCII or Latin-1.

Tcl syntax centers on commands and arguments: everything is a string, and constructs like proc, if, foreach, and switch are themselves commands rather than keywords. Scripts often begin with a shebang line such as #!/usr/bin/tclsh (for console scripts) or #!/usr/bin/wish (for GUI scripts using the Tk toolkit). The package require statement declares dependencies on external packages.

Tcl is especially prevalent in electronic design automation (EDA) - Synopsys, Cadence, and Xilinx Vivado all use .tcl scripts for tool automation and constraint files. Cisco IOS includes a Tcl interpreter for network scripting. On Unix-like systems, tclsh ships as a built-in, and macOS includes it with developer tools.

When scripts include Tk widget commands, they run under wish rather than tclsh. Compiled Tcl bytecode files use the separate .tbc extension and are not portable between Tcl versions.

Tcl 9.0.0, released in October 2024, added full Unicode support and 64-bit file-size handling. On Windows, installing ActiveTcl or the official Tcl/Tk distribution associates .tcl files so they run on double-click.

Security & safety

RISK: MEDIUM

Tcl scripts are executable code - running an untrusted .tcl file can execute arbitrary commands, modify files, or make network connections. Only run scripts from trusted sources. In EDA/network contexts scripts are typically internal tooling with known provenance. Safe to open in a text editor; risk only when executing.

Format details

in a nutshell
FULL NAMETcl Scriptaka Tool Command Language script, Tcl source file
DEVELOPERJohn Ousterhout (original); Tcl Core Team (ongoing, tcl-lang.org)since 1988 (Tcl 1.0 by John Ousterhout at UC Berkeley)
MIME TYPEtext/x-tcl
TYPEplain-text scripting language source file
STANDARDOpen · royalty-free

Programs that open TCL files

Windows4 apps
PSPad Free Open .tcl file in PSPad for syntax-highlighted editing.
Notepad Open-source Open in Notepad++ - has built-in Tcl syntax highlighting.
ActiveTcl (tclsh / wish) Free Install ActiveTcl; double-click .tcl to run, or 'tclsh script.tcl' / 'wish script.tcl' in CMD.
VS Code Open-source Open .tcl file; install 'Tcl' extension for syntax highlighting and linting.
macOS3 apps
TextMate Open-source Open .tcl files in TextMate for syntax-highlighted editing with Tcl bundle.
BBEdit Freemium Open .tcl files in BBEdit for editing; supports Tcl syntax coloring.
tclsh (macOS built-in) Open-source macOS ships with /usr/bin/tclsh; run 'tclsh script.tcl' in Terminal.
Linux3 apps
Tclsh Open-source tclsh script.tcl - command-line interpreter for non-GUI Tcl scripts.
tclsh (built-in on most distros) Open-source tclsh script.tcl - usually pre-installed; or 'apt install tcl' / 'yum install tcl'.
wish (Tk GUI runner) Open-source wish script.tcl - runs scripts using Tk GUI widgets. Install with 'apt install tk'.

Technical details

deep spec
File typePlain-text scripting language source file
MIME typetext/x-tcl
EncodingUTF-8 (Tcl 8.1+); ASCII or Latin-1 in legacy scripts
Console shebang`#!/usr/bin/tclsh`
GUI shebang`#!/usr/bin/wish`
Procedure syntax`proc name {args} {body}` - first-class command definition
GUI extensionTk (Toolkit) - Tk widget commands run under `wish`
Compiled variant`.tbc` (Tcl ByteCode) - not portable between Tcl versions
Typical size1 KB - 500 KB; large framework libraries can reach multi-MB
Key use domainsEDA tooling (Synopsys, Cadence, Xilinx Vivado), Cisco IOS scripting, test automation
Tcl 9.0.0 (October 2024)Added full Unicode support and 64-bit file-size handling
Windows executionDouble-click runs `.tcl` if ActiveTcl or Tcl/Tk is installed
Associated OSLinux, macOS, Windows, AIX, Solaris, embedded systems
Released1988 (Tcl 1.0 by John Ousterhout at UC Berkeley)
Latest versionTcl 9.0.0 (2024)
Open standardYes · royalty-free
Specificationwww.tcl-lang.org

TCL conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with TCL files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about TCL files.

Frequently asked questions

How do I run a TCL file?
Install Tcl/Tk (ActiveTcl on Windows, or system package on Linux/macOS) then run 'tclsh script.tcl' (command-line) or 'wish script.tcl' (GUI/Tk scripts) in a terminal.
What is the difference between tclsh and wish?
tclsh is the core command-line Tcl interpreter. wish includes everything tclsh has plus the Tk GUI toolkit for creating windows, buttons, and other UI elements.
Is Tcl still used?
Yes - extensively in EDA (chip design automation: Xilinx Vivado, Synopsys, Cadence), network scripting (Cisco IOS), and test automation (Expect). Tcl 9.0.0 was released in 2024.
Can I edit a TCL file without installing Tcl?
Yes - it is plain text. Open in any text editor (Notepad++, VS Code, Vim) to view or edit. You only need Tcl installed to run the script.
What does a .tcl file do?
Depends on its contents - Tcl scripts automate tasks, configure tools, run tests, or build GUIs. In EDA software, .tcl files drive synthesis and implementation flows.

References

1Tcl/Tk official documentationwww.tcl-lang.org
2tclsh manual page - Tcl-Lang.orgwww.tcl-lang.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.CRDOWNLOADChrome Partial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z