Codemorphis emblem: a ribbon of transformation between code brackets

Codemorphis

The magic of code translation.

Transform code between Racket and Java — with inferred types, idiomatic output and readable results.

Start transforming

Code transmutation

Output options

    Codemorphis API

    For automation and integrations use the REST API. Every request requires an API key in the X-API-Key header; the API has no translation limit.

    curl -X POST https://YOUR-HOST/api/translate/racket-to-java \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"code": "(define (sq x) (* x x))", "javaVersion": 11}'
    • POST /api/translate/racket-to-java
    • POST /api/translate/java-to-racket
    • Response: JSON with a result field and a list of diagnostics
    • Missing or wrong key: 401

    The website is free

    You can use the translator on this page without an account or a key. To keep it fast for everyone, it is limited to one translation per minute per IP address.

    Need more? Use the API — you get a key from the service administrator.

    • Racket → Java, targeting Java 11 to 25
    • Java → Racket
    • Clear diagnostics about what was transformed