Loading Code Tools…

Code Execution

Run code in Python, JavaScript, Java, C++, Go, Rust, Ruby, and 15+ more languages.

2 endpoints
Execute Code
GET /code/run
Run code in any supported language via the Piston API. Returns stdout, stderr, exit code, and execution time.
langcodestdin
Live
Supported Languages
GET /code/languages
Get a full list of all programming languages and versions supported by the code execution engine.
(none)
Live

Code Formatting & Obfuscation

Beautify messy code and protect JavaScript with obfuscation.

2 endpoints
Beautify Code
GET /code/beautify
Auto-format and beautify JavaScript, CSS, or HTML code with consistent indentation and proper spacing.
codetype
Live
Obfuscate JavaScript
GET /code/obfuscate
Obfuscate JavaScript source code to make it unreadable. Uses control flow flattening, string encryption, and dead code injection.
code
Live

Encoding & Hashing

Base64 encode/decode and cryptographic hash generation.

3 endpoints
Cryptographic Hash
GET /code/hash
Generate a cryptographic hash of any text. Supports MD5, SHA-1, SHA-256, and SHA-512 algorithms.
qalgo
Live
Base64 Encode
GET /code/base64/encode
Encode any text string to Base64 format. Returns the encoded string alongside the original input.
q
Live
Base64 Decode
GET /code/base64/decode
Decode a Base64-encoded string back to plain text. Returns the decoded content and original input.
q
Live

Other Tools

JSON formatter and password generator.

2 endpoints
JSON Formatter
GET /code/json/format
Format and validate a JSON string. Returns formatted JSON with 2-space indentation plus the minified version.
q
Live
Password Generator
GET /code/password
Generate a secure random password. Set length and whether to include symbols. Returns strength assessment.
lengthsymbols
Live

How to Use the Code Execution API

Quick guide to integrating /code/run into your project.

Supported Languages

Python, JavaScript, TypeScript, Java, C, C++, C#, Go, Rust, Ruby, PHP, Kotlin, Swift, Scala, Haskell, Perl, Lua, R, and more. Use /code/languages to see all available runtimes.

Example Request

1
Make a GET request to /code/run with parameters lang and code:

GET /code/run?lang=python&code=print("Hello World")
2
For multi-line code, URL-encode the source. Example in JavaScript:

const code = encodeURIComponent('print("line1")\nprint("line2")');
fetch('/code/run?lang=python&code='+code)
3
The response contains result.run.stdout (output), result.run.stderr (errors), and result.run.code (exit code).